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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user