diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-05 15:39:42 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-05 15:39:42 +0200 |
commit | 6fd73e314dbf6d52fb0edb2118265630619bc817 (patch) | |
tree | edc69c02347e0c5077b98b1167ea8a47f1d7f559 /cmake/opentrack-platform.cmake | |
parent | e0eb955b18a037ebe31cef7b944b779ae7d339a4 (diff) |
cmake: fix mingw-w64
Diffstat (limited to 'cmake/opentrack-platform.cmake')
-rw-r--r-- | cmake/opentrack-platform.cmake | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index c9bc2fca..1e34a5ef 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -22,13 +22,18 @@ # OTHER DEALINGS IN THE SOFTWARE. if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) - set(CMAKE_BUILD_TYPE "RELEASE" CACHE STRING "" FORCE) set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "" FORCE) + if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "RELEASE" CACHE STRING "" FORCE) + endif() endif() +string(TOUPPER "${CMAKE_BUILD_TYPE}" __build_type) +set(CMAKE_BUILD_TYPE "${__build_type}" CACHE STRING "" FORCE) + if(APPLE) if(NOT CMAKE_OSX_ARCHITECTURES) - set(CMAKE_OSX_ARCHITECTURES "x86_64") + set(CMAKE_OSX_ARCHITECTURES "x86_64") endif() endif() |