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:
parent
a4bfce94b2
commit
effc981878
2
deps/external_dependency.cmake
vendored
2
deps/external_dependency.cmake
vendored
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user