17 lines
422 B
CMake
17 lines
422 B
CMake
|
# Find "ModuleTools" dependencies, which are other ModuleTools packages.
|
||
|
set(_tool_deps "@tool_deps@")
|
||
|
foreach(_target_dep ${_tool_deps})
|
||
|
list(GET _target_dep 0 pkg)
|
||
|
list(GET _target_dep 1 version)
|
||
|
|
||
|
if (NOT ${pkg}_FOUND)
|
||
|
find_dependency(${pkg} ${version})
|
||
|
endif()
|
||
|
|
||
|
if (NOT ${pkg}_FOUND)
|
||
|
set(@INSTALL_CMAKE_NAMESPACE@@target@Tools_FOUND FALSE)
|
||
|
return()
|
||
|
endif()
|
||
|
endforeach()
|
||
|
|