Skip to content

Commit

Permalink
Merge pull request #8 from cristianadam/master
Browse files Browse the repository at this point in the history
Fix HunterToolchain.cmake handling of the installation directory
  • Loading branch information
bkotzz authored Dec 5, 2019
2 parents b78fa24 + 91f859f commit d2cd609
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ include(${CMAKE_BINARY_DIR}/HunterSetup.cmake)
file(WRITE ${CMAKE_BINARY_DIR}/HunterToolchain.cmake.in
[=[
# Add hunter install directory to the find_package variables
if (EXISTS "${CMAKE_BINARY_DIR}/_3rdParty/Hunter/install-root-dir")
file(READ ${CMAKE_BINARY_DIR}/_3rdParty/Hunter/install-root-dir HunterInstall)
list(APPEND CMAKE_FIND_ROOT_PATH \"${HunterInstall}\")
list(APPEND CMAKE_PREFIX_PATH \"${HunterInstall}\")
if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/_3rdParty/Hunter/install-root-dir")
file(READ "${CMAKE_CURRENT_LIST_DIR}/_3rdParty/Hunter/install-root-dir" HunterInstall)
list(APPEND CMAKE_FIND_ROOT_PATH "${HunterInstall}")
list(APPEND CMAKE_PREFIX_PATH "${HunterInstall}")
endif()
]=])

Expand Down

0 comments on commit d2cd609

Please sign in to comment.