mirror of
https://github.com/triqs/dft_tools
synced 2024-11-18 12:03:50 +01:00
[cmake] Fix Problem with VERSION requirement in external_dependency function
This commit is contained in:
parent
852066938a
commit
89d6b2d392
2
deps/external_dependency.cmake
vendored
2
deps/external_dependency.cmake
vendored
@ -32,7 +32,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 HINTS ${CMAKE_INSTALL_PREFIX})
|
||||
find_package(${ARGV0} ${ARG_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