Fixes in version reporting

This commit is contained in:
Carles Fernandez 2019-06-19 11:59:41 +02:00
parent e6e1fee80a
commit fed2035f1e
5 changed files with 13 additions and 4 deletions

View File

@ -890,15 +890,20 @@ if(NOT VOLKGNSSSDR_FOUND)
message(FATAL_ERROR "six - python 2 and 3 compatibility library required to build VOLK_GNSSSDR")
endif()
set_package_properties(Python3 PROPERTIES
URL "https://www.python.org/"
PURPOSE "Required to build volk_gnsssdr."
TYPE REQUIRED
)
if(Python3_FOUND)
set_package_properties(Python3 PROPERTIES
URL "https://www.python.org/"
DESCRIPTION "An interpreted, high-level, general-purpose programming language (found: ${Python3_VERSION})"
PURPOSE "Required to build volk_gnsssdr."
TYPE REQUIRED
)
else()
set_package_properties(Python3 PROPERTIES
DESCRIPTION "An interpreted, high-level, general-purpose programming language"
)
endif()
if(Python2_FOUND)
set_package_properties(Python2 PROPERTIES
URL "https://www.python.org/"

View File

@ -120,6 +120,7 @@ if(GFLAGS_FOUND)
if(PACKAGE_VERSION)
set(GFLAGS_VERSION ${PACKAGE_VERSION})
endif()
unset(PACKAGE_VERSION)
endif()
if(GFLAGS_FOUND AND NOT TARGET Gflags::gflags)

View File

@ -193,6 +193,7 @@ if(NOT PC_GNURADIO_RUNTIME_VERSION)
if(PACKAGE_VERSION)
set(PC_GNURADIO_RUNTIME_VERSION ${PACKAGE_VERSION})
endif()
unset(PACKAGE_VERSION)
endif()
# Trick to find out that GNU Radio is >= 3.7.4 if pkgconfig is not present

View File

@ -89,6 +89,7 @@ if(NOT PC_UHD_VERSION)
if(PACKAGE_VERSION)
set(UHD_VERSION ${PACKAGE_VERSION})
endif()
unset(PACKAGE_VERSION)
endif()
if(UHD_FOUND AND NOT TARGET Uhd::uhd)

View File

@ -92,6 +92,7 @@ if(NOT VOLK_VERSION)
if(PACKAGE_VERSION)
set(VOLK_VERSION ${PACKAGE_VERSION})
endif()
unset(PACKAGE_VERSION)
endif()
mark_as_advanced(VOLK_LIBRARIES VOLK_INCLUDE_DIRS VOLK_VERSION)