From ba1077f95de6787a9c1ef150424bfee55ddca5e1 Mon Sep 17 00:00:00 2001 From: Chris Mc Date: Sun, 6 Feb 2022 05:13:26 -0800 Subject: [PATCH] Run CMake with relative paths for Hunter (#206) --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 14cd9ed..cc74aab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,11 +107,9 @@ if(JWT_EXTERNAL_PICOJSON) target_link_libraries(jwt-cpp INTERFACE picojson::picojson>) endif() -# If Hunter is enabled, we need to explicit set relative paths so the files are palced correctly -if(HUNTER_ENABLED) +# Hunter needs relative paths so the files are palced correctly +if(NOT JWT_CMAKE_FILES_INSTALL_DIR) 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() configure_package_config_file(