1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-03 16:53:04 +00:00

Add cmake modules to cmakelint job and fix errors

This commit is contained in:
Carles Fernandez
2020-03-01 12:29:21 +01:00
parent e638019d93
commit 4b3f777425
9 changed files with 42 additions and 28 deletions

View File

@@ -13,6 +13,7 @@
if(NOT COMMAND feature_summary)
include(FeatureSummary)
endif()
include(FindPackageHandleStandardArgs)
# if GR_REQUIRED_COMPONENTS is not defined, it will be set to the following list
if(NOT GR_REQUIRED_COMPONENTS)
@@ -240,6 +241,9 @@ endif()
if(NOT DEFINED GNURADIO_FOUND)
set(GNURADIO_FOUND TRUE)
endif()
find_package_handle_standard_args(GNURADIO DEFAULT_MSG GNURADIO_FOUND)
set(GNURADIO_VERSION ${PC_GNURADIO_RUNTIME_VERSION})
if(NOT GNSSSDR_GNURADIO_MIN_VERSION)
@@ -328,7 +332,7 @@ if(GNURADIO_VERSION VERSION_GREATER 3.8.99)
message(STATUS " * LIBS=${GNURADIO_IIO_LIBRARIES}")
endif()
if(GNURADIO_IIO_LIBRARIES AND GNURADIO_IIO_INCLUDE_DIRS)
set(GNURADIO_IIO_FOUND TRUE)
set(GNURADIO_IIO_FOUND TRUE)
endif()
if(GNURADIO_IIO_FOUND)
message(STATUS "GNURADIO_IIO_FOUND = ${GNURADIO_IIO_FOUND}")