summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-platform.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-06-13 14:18:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-06-13 14:18:44 +0200
commit946e3221f94a6c08a632b641b62aafd1309cb875 (patch)
tree3b3eeaf203896fdaae746c7cb5b38023b13fcb46 /cmake/opentrack-platform.cmake
parent55b46808b3828a6c7d5d7babd91ca8def835b1f6 (diff)
cmake: fix rebuild on SDK_INSTALL_DEBUG_INFO
Diffstat (limited to 'cmake/opentrack-platform.cmake')
-rw-r--r--cmake/opentrack-platform.cmake12
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()