summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindDjInterop.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/FindDjInterop.cmake')
-rw-r--r--cmake/modules/FindDjInterop.cmake9
1 files changed, 6 insertions, 3 deletions
diff --git a/cmake/modules/FindDjInterop.cmake b/cmake/modules/FindDjInterop.cmake
index dffb733d83..c3c25ce76e 100644
--- a/cmake/modules/FindDjInterop.cmake
+++ b/cmake/modules/FindDjInterop.cmake
@@ -61,12 +61,15 @@ find_library(DjInterop_LIBRARY
)
mark_as_advanced(DjInterop_LIBRARY)
+if(DEFINED PC_DjInterop_VERSION AND NOT PC_DjInterop_VERSION STREQUAL "")
+ set(DjInterop_VERSION "${PC_DjInterop_VERSION}")
+endif()
+
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
DjInterop
- DEFAULT_MSG
- DjInterop_LIBRARY
- DjInterop_INCLUDE_DIR
+ REQUIRED_VARS DjInterop_LIBRARY DjInterop_INCLUDE_DIR
+ VERSION_VAR DjInterop_VERSION
)
if(DjInterop_FOUND)