Skip to content

Commit

Permalink
🖌️ With hunter use relative CMake install path (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc authored Jan 24, 2022
1 parent 8254f7c commit e6b92cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ if(JWT_EXTERNAL_PICOJSON)
target_link_libraries(jwt-cpp INTERFACE picojson::picojson>)
endif()

if(NOT JWT_CMAKE_FILES_INSTALL_DIR)
# If Hunter is enabled, we need to explicit set relative paths so the files are palced correctly
if(HUNTER_ENABLED)
set(JWT_CMAKE_FILES_INSTALL_DIR cmake)
elseif(NOT JWT_CMAKE_FILES_INSTALL_DIR)
set(JWT_CMAKE_FILES_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/cmake)
endif()

Expand Down

0 comments on commit e6b92cc

Please sign in to comment.