summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmake/msvc.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index 6a3ee586..78ce9e0d 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -24,9 +24,7 @@ if(DEFINED floormat-64bit)
endif()
endif()
-if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT OR CMAKE_INSTALL_PREFIX STREQUAL "")
- set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "" FORCE)
-endif()
+set(CMAKE_INSTALL_PREFIX_INIT "${CMAKE_BINARY_DIR}/install")
set(CMAKE_C_COMPILER_INIT cl.exe)
set(CMAKE_CXX_COMPILER_INIT cl.exe)