mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-07 22:06:48 +00:00
Help: update CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
Suggests to override CMAKE_INSTALL_PREFIX value with set_property(CACHE) instead of set(FORCE).
This commit is contained in:
1 parent
e8e1b01e19
commit
062c9dda89
1 file changed
+1
-1
@@ -13,5 +13,5 @@ by project code to change the default without overriding a user-provided value:
|
||||
.. code-block:: cmake
|
||||
|
||||
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||
set(CMAKE_INSTALL_PREFIX "/my/default" CACHE PATH "..." FORCE)
|
||||
set_property(CACHE CMAKE_INSTALL_PREFIX PROPERTY VALUE "/my/default")
|
||||
endif()
|
||||
Reference in new issue
Block a user