diff --git a/cmake/modules/ConfigHeader.cmake b/cmake/modules/ConfigHeader.cmake index e24ef45..c25e9ba 100644 --- a/cmake/modules/ConfigHeader.cmake +++ b/cmake/modules/ConfigHeader.cmake @@ -34,6 +34,8 @@ foreach(LINKAGE IN ITEMS "" "STATIC_") endif() set(DEPENDENCY_VER "${${DEPENDENCY_VARNAME}_VERSION}") else() + unset(DEPENDENCY_DISPLAY_NAME) + unset(DEPENDENCY_VER) # FIXME: provide meta-data for other libs, too endif() if(DEPENDENCY_VER AND NOT "${DEPENDENCY_VER}" STREQUAL "DEPENDENCY_VER-NOTFOUND")