Skip to content

Commit a13550f

Browse files
committed
default install prefix
1 parent d460a10 commit a13550f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

options.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ option(CMAKE_TLS_VERIFY "Verify TLS certificates when downloading libraries" ON)
1212
if(nc4fortran_IS_TOP_LEVEL AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
1313
# will not take effect without FORCE
1414
# CMAKE_BINARY_DIR in case it's used from FetchContent
15-
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/local CACHE PATH "Install top-level directory" FORCE)
15+
set(CMAKE_INSTALL_PREFIX ${PROJECT_BINARY_DIR}/local CACHE PATH "Install top-level directory" FORCE)
1616
endif()
1717

1818
set_property(DIRECTORY PROPERTY EP_UPDATE_DISCONNECTED true)

0 commit comments

Comments
 (0)