diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-24 18:17:39 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-27 16:43:00 +0200 |
commit | 9ec6940426d61a7c34758d6508dcd26599d9ab09 (patch) | |
tree | 85c188f3a96810ab6163caab582a8170b1e19489 /cmake | |
parent | 34c787422da0524eba147cabb18dec152d0b2e51 (diff) |
cmake: fix some logic
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/msvc.cmake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake index f8bd8ff9..f29800a3 100644 --- a/cmake/msvc.cmake +++ b/cmake/msvc.cmake @@ -54,6 +54,8 @@ if(CMAKE_PROJECT_NAME STREQUAL "opentrack") endif() set(base-cflags "${warns_} -MT -Zi -cgthreads8 -W4") +#set(base-cflags "${base-cflags} -d2cgsummary") +#set(base-cflags "${base-cflags} -Bt") set(_CFLAGS "${base-cflags}") set(_CXXFLAGS "${base-cflags}") @@ -72,8 +74,9 @@ set(_LDFLAGS_STATIC_DEBUG "") set(CMAKE_RC_FLAGS "-nologo -DWIN32") -if(NOT __otr_already_initialized STREQUAL "${cc}" OR "$ENV{OTR_REDO}") - set(__otr_already_initialized "${cc}" CACHE INTERNAL "" FORCE) +set(new-__otr_already_initialized "_${cc}_${base-cflags}_") +if(NOT "${__otr_already_initialized}" STREQUAL "${new-__otr_already_initialized}") + set(__otr_already_initialized "${cc}__${base-cflags}" CACHE INTERNAL "" FORCE) set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "" FORCE) set(CMAKE_BUILD_TYPE "RELEASE" CACHE STRING "" FORCE) |