mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-05-20 04:12:14 +00:00
CMake: Improve usage of pkg_check_modules()
This commit is contained in:
@@ -11,7 +11,7 @@ endif()
|
||||
if(NOT PKG_CONFIG_FOUND)
|
||||
include(FindPkgConfig)
|
||||
endif()
|
||||
pkg_check_modules(PC_GMP "gmp")
|
||||
pkg_check_modules(PC_GMP QUIET gmp)
|
||||
|
||||
if(NOT DEFINED GNSSSDR_LIB_PATHS)
|
||||
include(GnsssdrFindPaths)
|
||||
|
||||
@@ -27,7 +27,7 @@ if(NOT DEFINED GNSSSDR_LIB_PATHS)
|
||||
include(GnsssdrFindPaths)
|
||||
endif()
|
||||
|
||||
pkg_check_modules(PC_LOG4CPP log4cpp QUIET)
|
||||
pkg_check_modules(PC_LOG4CPP QUIET log4cpp)
|
||||
|
||||
if(LOG4CPP_INCLUDE_DIR)
|
||||
# Already in cache, be silent
|
||||
|
||||
@@ -31,7 +31,7 @@ if(NOT DEFINED GNSSSDR_LIB_PATHS)
|
||||
include(GnsssdrFindPaths)
|
||||
endif()
|
||||
|
||||
pkg_check_modules(PC_PCAP libpcap QUIET)
|
||||
pkg_check_modules(PC_PCAP QUIET libpcap)
|
||||
|
||||
if(NOT PCAP_ROOT)
|
||||
set(PCAP_ROOT_USER_PROVIDED /usr)
|
||||
|
||||
@@ -28,7 +28,7 @@ if(NOT DEFINED GNSSSDR_LIB_PATHS)
|
||||
include(GnsssdrFindPaths)
|
||||
endif()
|
||||
|
||||
pkg_check_modules(PC_PUGIXML pugixml QUIET)
|
||||
pkg_check_modules(PC_PUGIXML QUIET pugixml)
|
||||
|
||||
set(PUGIXML_ROOT_USER_DEFINED "")
|
||||
if(DEFINED PUGIXML_ROOT AND NOT "${PUGIXML_ROOT}" STREQUAL "")
|
||||
|
||||
@@ -21,7 +21,7 @@ if(NOT DEFINED GNSSSDR_LIB_PATHS)
|
||||
include(GnsssdrFindPaths)
|
||||
endif()
|
||||
|
||||
pkg_check_modules(PC_TELEORBIT teleorbit QUIET)
|
||||
pkg_check_modules(PC_TELEORBIT QUIET teleorbit)
|
||||
|
||||
if(NOT TELEORBIT_ROOT)
|
||||
set(TELEORBIT_ROOT_USER_DEFINED /usr/local)
|
||||
|
||||
@@ -24,7 +24,7 @@ if(NOT DEFINED GNSSSDR_LIB_PATHS)
|
||||
include(GnsssdrFindPaths)
|
||||
endif()
|
||||
|
||||
pkg_check_modules(PC_VOLK volk QUIET)
|
||||
pkg_check_modules(PC_VOLK QUIET volk)
|
||||
|
||||
|
||||
########################################################################
|
||||
|
||||
Reference in New Issue
Block a user