mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-20 22:17:03 +00:00
Fix detection of Volk version if pkg-config is not present
This commit is contained in:
parent
35cd66cb55
commit
aeaf68fe47
@ -84,6 +84,7 @@ if(NOT VOLK_VERSION)
|
|||||||
list(GET VOLK_LIBRARIES 0 FIRST_DIR)
|
list(GET VOLK_LIBRARIES 0 FIRST_DIR)
|
||||||
get_filename_component(VOLK_LIB_DIR ${FIRST_DIR} DIRECTORY)
|
get_filename_component(VOLK_LIB_DIR ${FIRST_DIR} DIRECTORY)
|
||||||
if(EXISTS ${VOLK_LIB_DIR}/cmake/volk/VolkConfigVersion.cmake)
|
if(EXISTS ${VOLK_LIB_DIR}/cmake/volk/VolkConfigVersion.cmake)
|
||||||
|
set(PACKAGE_FIND_VERSION_MAJOR 0)
|
||||||
include(${VOLK_LIB_DIR}/cmake/volk/VolkConfigVersion.cmake)
|
include(${VOLK_LIB_DIR}/cmake/volk/VolkConfigVersion.cmake)
|
||||||
endif()
|
endif()
|
||||||
if(PACKAGE_VERSION)
|
if(PACKAGE_VERSION)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright (C) 2015-2018 (see AUTHORS file for a list of contributors)
|
# Copyright (C) 2015-2020 (see AUTHORS file for a list of contributors)
|
||||||
#
|
#
|
||||||
# This file is part of GNSS-SDR.
|
# This file is part of GNSS-SDR.
|
||||||
#
|
#
|
||||||
@ -8,14 +8,13 @@ set(MAJOR_VERSION @VERSION_INFO_MAJOR_VERSION@)
|
|||||||
set(MINOR_VERSION @VERSION_INFO_MINOR_VERSION@)
|
set(MINOR_VERSION @VERSION_INFO_MINOR_VERSION@)
|
||||||
set(MAINT_VERSION @VERSION_INFO_MAINT_VERSION@)
|
set(MAINT_VERSION @VERSION_INFO_MAINT_VERSION@)
|
||||||
|
|
||||||
set(PACKAGE_VERSION
|
set(PACKAGE_VERSION ${MAJOR_VERSION}.${MINOR_VERSION}.${MAINT_VERSION})
|
||||||
${MAJOR_VERSION}.${MINOR_VERSION}.${MAINT_VERSION})
|
|
||||||
|
|
||||||
if(${PACKAGE_FIND_VERSION_MAJOR} EQUAL ${MAJOR_VERSION})
|
if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL ${MAJOR_VERSION})
|
||||||
if(${PACKAGE_FIND_VERSION_MINOR} EQUAL ${MINOR_VERSION})
|
if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL ${MINOR_VERSION})
|
||||||
if(NOT ${PACKAGE_FIND_VERSION_PATCH} GREATER ${MAINT_VERSION})
|
if(NOT "${PACKAGE_FIND_VERSION_PATCH}" GREATER ${MAINT_VERSION})
|
||||||
set(PACKAGE_VERSION_EXACT 1) # exact match for API version
|
set(PACKAGE_VERSION_EXACT 1) # exact match for API version
|
||||||
set(PACKAGE_VERSION_COMPATIBLE 1) # compat for minor/patch version
|
set(PACKAGE_VERSION_COMPATIBLE 1) # compat for minor/patch version
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user