3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-03 10:05:49 +01:00

[cmake] In external_dependency function be sure to search deps also in INSTALL_PREFIX

This commit is contained in:
Nils Wentzell 2020-04-29 10:20:49 -04:00
parent a4bfce94b2
commit effc981878

View File

@ -11,7 +11,7 @@ function(external_dependency)
# -- Try to find package in system.
if(NOT ARG_BUILD_ALWAYS AND NOT Build_Deps STREQUAL "Always")
find_package(${ARGV0} ${${ARGV0}_VERSION} QUIET)
find_package(${ARGV0} ${${ARGV0}_VERSION} QUIET HINTS ${CMAKE_INSTALL_PREFIX})
if(${ARGV0}_FOUND)
message(STATUS "Found dependency ${ARGV0} in system.")
return()