Skip to content

Commit 58d25d7

Browse files
committed
Fix PHASAR_CONFIG_INSTALL_DIR customization as per review comment
1 parent 17e481a commit 58d25d7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,12 @@ else()
131131
set(PHASAR_STD_FILESYSTEM stdc++fs)
132132
endif()
133133

134-
set(PHASAR_CONFIG_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/.phasar-config/" CACHE STRING "Customizes the directory, where configuration files for PhASAR are installed (default is /usr/local/.phasar-config)")
134+
set(PHASAR_CUSTOM_CONFIG_INSTALL_DIR "" CACHE STRING "If set, customizes the directory, where configuration files for PhASAR are installed (default is /usr/local/.phasar-config)")
135+
if ("${PHASAR_CUSTOM_CONFIG_INSTALL_DIR}" STREQUAL "")
136+
set(PHASAR_CONFIG_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/.phasar-config/")
137+
else()
138+
set(PHASAR_CONFIG_INSTALL_DIR "${PHASAR_CUSTOM_CONFIG_INSTALL_DIR}")
139+
endif()
135140

136141
add_compile_definitions(PHASAR_CONFIG_DIR="${PHASAR_CONFIG_INSTALL_DIR}")
137142
add_compile_definitions(PHASAR_DIR="${PHASAR_SRC_DIR}")

0 commit comments

Comments
 (0)