diff --git a/deps/external_dependency.cmake b/deps/external_dependency.cmake index ef39bcb9..7012e9b0 100644 --- a/deps/external_dependency.cmake +++ b/deps/external_dependency.cmake @@ -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()