Skip to content

Commit e6b92cc

Browse files
🖌️ With hunter use relative CMake install path (#198)
1 parent 8254f7c commit e6b92cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ if(JWT_EXTERNAL_PICOJSON)
107107
target_link_libraries(jwt-cpp INTERFACE picojson::picojson>)
108108
endif()
109109

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

0 commit comments

Comments
 (0)