Skip to content
Snippets Groups Projects
Commit e7294d81 authored by Jens Georg's avatar Jens Georg
Browse files

Use find_dependency instead of find_package

find_package is for use inside the *Config.cmake files
parent b9b32d0e
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ endforeach()
set(${PROJECT_NAME}_PUBLIC_DEPENDENCIES_L "")
foreach(DEPENDENCY ${${PROJECT_NAME}_PUBLIC_DEPENDENCIES})
string(APPEND ${PROJECT_NAME}_PUBLIC_DEPENDENCIES_L "find_package(${DEPENDENCY} REQUIRED)\n")
string(APPEND ${PROJECT_NAME}_PUBLIC_DEPENDENCIES_L "find_dependency(${DEPENDENCY})\n")
endforeach()
# we have nested @-statements, so we have to parse twice:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment