We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4108ab9 + 41b5453 commit 3039df5Copy full SHA for 3039df5
CMakeLists.txt
@@ -14,7 +14,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
14
set(CMAKE_CXX_EXTENSIONS OFF)
15
16
# Install to the build directory
17
-set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}" CACHE STRING "CMake install prefix" FORCE)
+if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
18
+ set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}" CACHE STRING "CMake install prefix" FORCE)
19
+endif()
20
21
# Use "d" suffix for debug builds
22
# Do not use a suffix for RelWithDebInfo
0 commit comments