diff options
Diffstat (limited to 'cmake/modules/FindKeyFinder.cmake')
-rw-r--r-- | cmake/modules/FindKeyFinder.cmake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cmake/modules/FindKeyFinder.cmake b/cmake/modules/FindKeyFinder.cmake index 055d591f78..e3ccc2fc7b 100644 --- a/cmake/modules/FindKeyFinder.cmake +++ b/cmake/modules/FindKeyFinder.cmake @@ -63,12 +63,15 @@ find_library(KeyFinder_LIBRARY ) mark_as_advanced(KeyFinder_LIBRARY) +if(DEFINED PC_KeyFinder_VERSION AND NOT PC_KeyFinder_VERSION STREQUAL "") + set(KeyFinder_VERSION "${PC_KeyFinder_VERSION}") +endif() + include(FindPackageHandleStandardArgs) find_package_handle_standard_args( KeyFinder - DEFAULT_MSG - KeyFinder_LIBRARY - KeyFinder_INCLUDE_DIR + REQUIRED_VARS KeyFinder_LIBRARY KeyFinder_INCLUDE_DIR + VERSION_VAR KeyFinder_VERSION ) if(KeyFinder_FOUND) |