summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-19 13:48:44 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-24 19:31:24 +0100
commit2613beb8028ecac53548d311b27ff38559763f6c (patch)
treef3b644676e41d9194fcccd685511506ec9c5bde7 /cmake
parenta89d6e9dcb45ae587bd6add0744085f89e902b6c (diff)
cmake/mingw-w64: cleanup
Diffstat (limited to 'cmake')
-rw-r--r--cmake/mingw-w64.cmake9
1 files changed, 2 insertions, 7 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake
index e96b3d6d..e762a989 100644
--- a/cmake/mingw-w64.cmake
+++ b/cmake/mingw-w64.cmake
@@ -3,14 +3,9 @@
# mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=$(pwd)/../cmake/mingw-w64.cmake
# -sh 20140922
-if((NOT CMAKE_BUILD_TYPE STREQUAL "DEBUG") AND (NOT CMAKE_BUILD_TYPE STREQUAL "RELEASE"))
- set(CMAKE_BUILD_TYPE "DEBUG" CACHE STRING "" FORCE)
-endif()
+include("${CMAKE_CURRENT_LIST_DIR}/opentrack-policy.cmake" NO_POLICY_SCOPE)
-string(TOUPPER "${CMAKE_BUILD_TYPE}" __build_type)
-if(NOT __build_type STREQUAL CMAKE_BUILD_TYPE)
- set(CMAKE_BUILD_TYPE "${__build_type}" CACHE STRING "" FORCE)
-endif()
+string(TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE)
if(NOT CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE STRING "" FORCE)