diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-24 12:04:58 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-24 12:04:58 +0200 |
commit | 64cf540c76acf10742d32e2aa28d73a48e459bc2 (patch) | |
tree | 9659b0cbe981b7f3e933c0d28d63e74749b19e46 /cmake | |
parent | 71a90c382e390a6424ff57ad64afa9075823c1c8 (diff) |
cmake/platform: don't break build via -HIGHENTROPYVA
Fixes: #640
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-platform.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index 9bed520c..838df02a 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -37,11 +37,6 @@ if(MSVC AND MSVC_VERSION LESS "1900") message(FATAL_ERROR "Visual Studio too old. Use Visual Studio 2015 Update 3 or newer.") endif() -if(MSVC AND opentrack-64bit) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /HIGHENTROPYVA") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /HIGHENTROPYVA") -endif() - if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") set(CMAKE_COMPILER_IS_GNUCXX TRUE) set(CMAKE_COMPILER_IS_CLANG TRUE) @@ -68,9 +63,14 @@ if(MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Zi -std:c++14") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Zi") + if(MSVC AND opentrack-64bit) + set(ent "-HIGHENTROPYVA") + else() + set(ent "") + endif() foreach (i SHARED MODULE EXE) - set(CMAKE_${i}_LINKER_FLAGS "${CMAKE_${i}_LINKER_FLAGS} -DYNAMICBASE -NXCOMPAT -DEBUG") + set(CMAKE_${i}_LINKER_FLAGS "${CMAKE_${i}_LINKER_FLAGS} -DYNAMICBASE -NXCOMPAT -DEBUG ${ent}") endforeach() endif() |