diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-13 14:18:44 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-13 14:18:44 +0200 |
commit | 946e3221f94a6c08a632b641b62aafd1309cb875 (patch) | |
tree | 3b3eeaf203896fdaae746c7cb5b38023b13fcb46 /cmake | |
parent | 55b46808b3828a6c7d5d7babd91ca8def835b1f6 (diff) |
cmake: fix rebuild on SDK_INSTALL_DEBUG_INFO
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-platform.cmake | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index 4351a28d..fac5f2bf 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -45,17 +45,11 @@ if(MSVC) add_definitions(-D_ITERATOR_DEBUG_LEVEL=0 -D_ITERATOR_DEBUG_LEVEL=0) add_definitions(-D_HAS_EXCEPTIONS=0) - set(CMAKE_CXX_FLAGS "-std:c++14 ${CMAKE_CXX_FLAGS}") - if(SDK_INSTALL_DEBUG_INFO) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Zi") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Zi") - endif() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Zi -std:c++14") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Zi") foreach (i SHARED MODULE EXE) - set(CMAKE_${i}_LINKER_FLAGS "${CMAKE_${i}_LINKER_FLAGS} -DYNAMICBASE -NXCOMPAT") - if(SDK_INSTALL_DEBUG_INFO) - set(CMAKE_${i}_LINKER_FLAGS "${CMAKE_${i}_LINKER_FLAGS} -DEBUG") - endif() + set(CMAKE_${i}_LINKER_FLAGS "${CMAKE_${i}_LINKER_FLAGS} -DYNAMICBASE -NXCOMPAT -DEBUG") endforeach() endif() |