mirror of https://github.com/gnss-sdr/gnss-sdr
Fix warnings raised by CMake 3.17.0-rc1
This commit is contained in:
parent
e1b8042346
commit
49adce12e3
|
@ -402,6 +402,11 @@ if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin"))
|
|||
endif()
|
||||
endif()
|
||||
|
||||
################################################################################
|
||||
# pkg-config - Helper tool used when compiling applications and libraries.
|
||||
################################################################################
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
find_package(PkgConfig)
|
||||
|
||||
|
||||
################################################################################
|
||||
|
|
|
@ -36,8 +36,6 @@ else()
|
|||
set(LIB_PATHS ${GLOG_ROOT} ${GLOG_ROOT}/lib)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_GLOG libglog)
|
||||
|
||||
macro(_FIND_GLOG_LIBRARIES _var)
|
||||
|
|
|
@ -14,10 +14,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
# if GR_REQUIRED_COMPONENTS is not defined, it will be set to the following list
|
||||
if(NOT GR_REQUIRED_COMPONENTS)
|
||||
set(GR_REQUIRED_COMPONENTS RUNTIME PMT BLOCKS FFT FILTER ANALOG)
|
||||
|
@ -131,7 +127,9 @@ function(GR_MODULE EXTVAR PCNAME INCFILE LIBFILE)
|
|||
set(GNURADIO_ALL_INCLUDE_DIRS ${GNURADIO_ALL_INCLUDE_DIRS} ${GNURADIO_${EXTVAR}_INCLUDE_DIRS} PARENT_SCOPE)
|
||||
set(GNURADIO_ALL_LIBRARIES ${GNURADIO_ALL_LIBRARIES} ${GNURADIO_${EXTVAR}_LIBRARIES} PARENT_SCOPE)
|
||||
|
||||
find_package_handle_standard_args(GNURADIO_${EXTVAR} DEFAULT_MSG GNURADIO_${EXTVAR}_LIBRARIES GNURADIO_${EXTVAR}_INCLUDE_DIRS)
|
||||
if(GNURADIO_${EXTVAR}_LIBRARIES AND GNURADIO_${EXTVAR}_INCLUDE_DIRS)
|
||||
set(GNURADIO_${EXTVAR}_FOUND TRUE)
|
||||
endif()
|
||||
message(STATUS "GNURADIO_${EXTVAR}_FOUND = ${GNURADIO_${EXTVAR}_FOUND}")
|
||||
set(GNURADIO_${EXTVAR}_FOUND ${GNURADIO_${EXTVAR}_FOUND} PARENT_SCOPE)
|
||||
|
||||
|
@ -334,8 +332,9 @@ if(GNURADIO_VERSION VERSION_GREATER 3.8.99)
|
|||
message(STATUS " * INCLUDES=${GNURADIO_IIO_INCLUDE_DIRS}")
|
||||
message(STATUS " * LIBS=${GNURADIO_IIO_LIBRARIES}")
|
||||
endif()
|
||||
find_package_handle_standard_args(GNURADIO_IIO DEFAULT_MSG GNURADIO_IIO_LIBRARIES GNURADIO_IIO_INCLUDE_DIRS)
|
||||
|
||||
if(GNURADIO_IIO_LIBRARIES AND GNURADIO_IIO_INCLUDE_DIRS)
|
||||
set(GNURADIO_IIO_FOUND TRUE)
|
||||
endif()
|
||||
if(GNURADIO_IIO_FOUND)
|
||||
message(STATUS "GNURADIO_IIO_FOUND = ${GNURADIO_IIO_FOUND}")
|
||||
# append to all includes and libs list
|
||||
|
|
|
@ -21,8 +21,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_GTEST gtest)
|
||||
|
||||
find_path(LIBGTEST_DEV_DIR
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
# Gnuradio::dbfcttc
|
||||
#
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_GR_DBFCTTC gr-dbfcttc)
|
||||
|
||||
find_path(
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
# Gnuradio::gn3s
|
||||
#
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_GR_GN3S gr-gn3s)
|
||||
|
||||
find_path(
|
||||
|
|
|
@ -15,8 +15,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_IIO gnuradio-iio)
|
||||
|
||||
find_path(IIO_INCLUDE_DIRS
|
||||
|
|
|
@ -33,8 +33,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(GROSMOSDR_PKG gnuradio-osmosdr)
|
||||
|
||||
find_path(GROSMOSDR_INCLUDE_DIR
|
||||
|
|
|
@ -15,8 +15,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_LIBAD9361 libad9361)
|
||||
|
||||
find_path(LIBAD9361_INCLUDE_DIRS
|
||||
|
|
|
@ -15,8 +15,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_LIBIIO libiio)
|
||||
|
||||
find_path(
|
||||
|
|
|
@ -21,8 +21,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_LOG4CPP log4cpp QUIET)
|
||||
|
||||
if(LOG4CPP_INCLUDE_DIR)
|
||||
|
|
|
@ -10,8 +10,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_ORC "orc-0.4 > 0.4.22")
|
||||
|
||||
find_program(ORCC_EXECUTABLE orcc
|
||||
|
|
|
@ -27,8 +27,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_PCAP libpcap QUIET)
|
||||
|
||||
if(EXISTS $ENV{PCAPDIR})
|
||||
|
|
|
@ -22,8 +22,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_PUGIXML pugixml QUIET)
|
||||
|
||||
find_path(PUGIXML_INCLUDE_DIR
|
||||
|
|
|
@ -15,8 +15,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_TELEORBIT teleorbit QUIET)
|
||||
|
||||
find_path(TELEORBIT_INCLUDE_DIRS
|
||||
|
|
|
@ -18,8 +18,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_UHD uhd)
|
||||
|
||||
find_path(UHD_INCLUDE_DIRS
|
||||
|
|
|
@ -18,8 +18,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_VOLK volk QUIET)
|
||||
|
||||
find_path(VOLK_INCLUDE_DIRS
|
||||
|
|
|
@ -19,8 +19,6 @@ if(NOT COMMAND feature_summary)
|
|||
include(FeatureSummary)
|
||||
endif()
|
||||
|
||||
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH TRUE)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_VOLK_GNSSSDR QUIET volk_gnsssdr)
|
||||
|
||||
find_path(VOLK_GNSSSDR_INCLUDE_DIRS
|
||||
|
|
|
@ -69,6 +69,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
- Now the volk_gnsssdr library can be built on Microsoft Windows.
|
||||
- Now the volk_gnsssdr library makes use of C11 aligned_alloc where available.
|
||||
- Improved CMake script for cross-compilation and for the detection of AVX, AVX2 and NEON (v7 and v8) instructions.
|
||||
- Fixed warnings raised by CMake 3.17.
|
||||
|
||||
|
||||
### Improvements in Reliability:
|
||||
|
|
Loading…
Reference in New Issue