summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-24 18:17:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-27 16:43:00 +0200
commit9ec6940426d61a7c34758d6508dcd26599d9ab09 (patch)
tree85c188f3a96810ab6163caab582a8170b1e19489 /cmake
parent34c787422da0524eba147cabb18dec152d0b2e51 (diff)
cmake: fix some logic
Diffstat (limited to 'cmake')
-rw-r--r--cmake/msvc.cmake7
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)