Skip to content

Commit ba1077f

Browse files
Run CMake with relative paths for Hunter (#206)
1 parent dbe0d7f commit ba1077f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,9 @@ if(JWT_EXTERNAL_PICOJSON)
107107
target_link_libraries(jwt-cpp INTERFACE picojson::picojson>)
108108
endif()
109109

110-
# If Hunter is enabled, we need to explicit set relative paths so the files are palced correctly
111-
if(HUNTER_ENABLED)
110+
# Hunter needs relative paths so the files are palced correctly
111+
if(NOT JWT_CMAKE_FILES_INSTALL_DIR)
112112
set(JWT_CMAKE_FILES_INSTALL_DIR cmake)
113-
elseif(NOT JWT_CMAKE_FILES_INSTALL_DIR)
114-
set(JWT_CMAKE_FILES_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/cmake)
115113
endif()
116114

117115
configure_package_config_file(

0 commit comments

Comments
 (0)