mirror of
https://github.com/triqs/dft_tools
synced 2024-09-12 05:38:31 +02: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.
|
# -- Try to find package in system.
|
||||||
if(NOT ARG_BUILD_ALWAYS AND NOT Build_Deps STREQUAL "Always")
|
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)
|
if(${ARGV0}_FOUND)
|
||||||
message(STATUS "Found dependency ${ARGV0} in system")
|
message(STATUS "Found dependency ${ARGV0} in system")
|
||||||
return()
|
return()
|
||||||
|
Loading…
Reference in New Issue
Block a user