diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-02 07:51:46 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-02 07:54:23 +0200 |
commit | 840515d29491f753127b86bb48f9ad5fd56e817c (patch) | |
tree | eda3aeeb643cce20f62f105515cccfe8bffd4afb | |
parent | 334576cb4afc2ec76195a34849cc0c57d6afae5a (diff) |
cmake/msvc: fix vars not set
-rw-r--r-- | cmake/msvc.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake index e4708760..aed0fcd9 100644 --- a/cmake/msvc.cmake +++ b/cmake/msvc.cmake @@ -64,7 +64,8 @@ set(_LDFLAGS_STATIC_DEBUG "") set(CMAKE_RC_FLAGS "-nologo -DWIN32") -if(NOT CMAKE_INSTALL_PREFIX) +if(NOT __otr_already_initialized OR "$ENV{OTR_REDO}") + set(__otr_already_initialized 1 CACHE INTERNAL "" FORCE) set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "" FORCE) set(CMAKE_BUILD_TYPE "RELEASE" CACHE STRING "" FORCE) @@ -76,7 +77,6 @@ if(NOT CMAKE_INSTALL_PREFIX) foreach(i "" _DEBUG _RELEASE) set(CMAKE_${j}_FLAGS${i} "${_${j}FLAGS${i}}" CACHE STRING "" FORCE) endforeach() - set(CMAKE_${j}_FLAGS "${_${j}FLAGS}" CACHE STRING "" FORCE) endforeach() foreach(j "" _DEBUG _RELEASE) |