Skip to content
Snippets Groups Projects
Commit 452cd637 authored by Ammar Nejati's avatar Ammar Nejati
Browse files

CMake: Use 'findPkgVersion' to find the version of Cerf package under Windows

parent bb7abf82
No related branches found
No related tags found
1 merge request!411Remove PkgConfig dependence on Windows
Pipeline #47391 passed
...@@ -26,7 +26,13 @@ if(NOT WIN32) ...@@ -26,7 +26,13 @@ if(NOT WIN32)
endif() endif()
endif() endif()
else() else()
set(Cerf_VERSION "") include(FindPkgVersion)
findPkgVersion(
"cerf" # libname
"" # use default config file
"${CMAKE_LIBRARY_PATH}" # search paths
Cerf_VERSION # output variable
)
endif() endif()
find_path(Cerf_INCLUDE_DIR cerf.h) find_path(Cerf_INCLUDE_DIR cerf.h)
......
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