Skip to content

Commit

Permalink
cache install prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Apr 22, 2024
1 parent 5804522 commit 5c8a340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ option(CMAKE_TLS_VERIFY "Verify TLS certificates" true)

include(GNUInstallDirs)

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

set_property(DIRECTORY PROPERTY EP_UPDATE_DISCONNECTED true)
Expand Down

0 comments on commit 5c8a340

Please sign in to comment.