Skip to content

Commit 5c8a340

Browse files
committed
cache install prefix
1 parent 5804522 commit 5c8a340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

options.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ option(CMAKE_TLS_VERIFY "Verify TLS certificates" true)
1212

1313
include(GNUInstallDirs)
1414

15-
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND ${PROJECT_NAME}_IS_TOP_LEVEL)
16-
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/local" CACHE PATH "install prefix" FORCE)
15+
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND PROJECT_IS_TOP_LEVEL)
16+
set_property(CACHE CMAKE_INSTALL_PREFIX PROPERTY VALUE "${PROJECT_BINARY_DIR}/local")
1717
endif()
1818

1919
set_property(DIRECTORY PROPERTY EP_UPDATE_DISCONNECTED true)

0 commit comments

Comments
 (0)