1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-10-21 18:47:41 +00:00

Fix detection of Volk version if pkg-config is not present

This commit is contained in:
Carles Fernandez
2020-02-10 01:16:58 +01:00
parent 35cd66cb55
commit aeaf68fe47
2 changed files with 9 additions and 9 deletions

View File

@@ -84,6 +84,7 @@ if(NOT VOLK_VERSION)
list(GET VOLK_LIBRARIES 0 FIRST_DIR)
get_filename_component(VOLK_LIB_DIR ${FIRST_DIR} DIRECTORY)
if(EXISTS ${VOLK_LIB_DIR}/cmake/volk/VolkConfigVersion.cmake)
set(PACKAGE_FIND_VERSION_MAJOR 0)
include(${VOLK_LIB_DIR}/cmake/volk/VolkConfigVersion.cmake)
endif()
if(PACKAGE_VERSION)