mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-11-01 07:43:04 +00:00 
			
		
		
		
	Shut down warnings raised by GPSTk in GCC
This commit is contained in:
		| @@ -23,11 +23,19 @@ if("${ARMADILLO_VERSION_STRING}" VERSION_GREATER "9.800" OR (NOT ARMADILLO_FOUND | |||||||
|     target_include_directories(obsdiff PUBLIC ${CMAKE_SOURCE_DIR}/src/tests/common-files) |     target_include_directories(obsdiff PUBLIC ${CMAKE_SOURCE_DIR}/src/tests/common-files) | ||||||
|     set_property(TARGET obsdiff PROPERTY CXX_STANDARD 14)  # Required by GPSTk v3.0.0 |     set_property(TARGET obsdiff PROPERTY CXX_STANDARD 14)  # Required by GPSTk v3.0.0 | ||||||
|     # Do not show warnings raised by GPSTk v3.0.0 |     # Do not show warnings raised by GPSTk v3.0.0 | ||||||
|     target_compile_options(obsdiff |     if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||||||
|         PUBLIC |        target_compile_options(obsdiff | ||||||
|             -Wno-deprecated -Wno-unused-parameter -Wno-sign-compare -Wno-reorder |            PUBLIC | ||||||
|     ) |                -Wno-deprecated -Wno-unused-parameter -Wno-sign-compare -Wno-reorder -Wno-deprecated-copy -Wno-extra -Wno-unused-but-set-variable -Wno-unknown-pragmas | ||||||
|  |        ) | ||||||
|  |     endif() | ||||||
|  |     if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||||||
|  |         target_compile_options(obsdiff | ||||||
|  |             PUBLIC | ||||||
|  |                 -Wno-deprecated -Wno-unused-parameter -Wno-sign-compare -Wno-reorder | ||||||
|  |         ) | ||||||
|  |     endif() | ||||||
|  |      | ||||||
|     if(NOT ARMADILLO_FOUND OR ENABLE_OWN_ARMADILLO) |     if(NOT ARMADILLO_FOUND OR ENABLE_OWN_ARMADILLO) | ||||||
|         add_dependencies(obsdiff armadillo-${armadillo_RELEASE}) |         add_dependencies(obsdiff armadillo-${armadillo_RELEASE}) | ||||||
|     endif() |     endif() | ||||||
|   | |||||||
| @@ -1,16 +1,16 @@ | |||||||
| # Copyright (C) 2012-2020  (see AUTHORS file for a list of contributors) | #Copyright(C) 2012 - 2020(see AUTHORS file for a list of contributors) | ||||||
| # | # | ||||||
| # GNSS-SDR is a software-defined Global Navigation Satellite Systems receiver | #GNSS - SDR is a software - defined Global Navigation Satellite Systems receiver | ||||||
| # | # | ||||||
| # This file is part of GNSS-SDR. | #This file is part of GNSS - SDR. | ||||||
| # | # | ||||||
| # SPDX-License-Identifier: GPL-3.0-or-later | #SPDX - License - Identifier : GPL - 3.0 - or -later | ||||||
| # | # | ||||||
|  |  | ||||||
| find_package(GPSTK QUIET) | find_package(GPSTK QUIET) | ||||||
| if(NOT GPSTK_FOUND OR ENABLE_OWN_GPSTK) | if(NOT GPSTK_FOUND OR ENABLE_OWN_GPSTK) | ||||||
|     include(GNUInstallDirs) |     include(GNUInstallDirs) | ||||||
|     #string(REGEX REPLACE /[^/]*$ "" LIBDIR ${CMAKE_INSTALL_LIBDIR}) | #string(REGEX REPLACE / [^ / ] * $ "" LIBDIR ${CMAKE_INSTALL_LIBDIR}) | ||||||
|     set(GPSTK_LIBRARY ${CMAKE_CURRENT_SOURCE_DIR}/../../../thirdparty/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install/${CMAKE_INSTALL_LIBDIR}/${CMAKE_FIND_LIBRARY_PREFIXES}gpstk${CMAKE_SHARED_LIBRARY_SUFFIX}) |     set(GPSTK_LIBRARY ${CMAKE_CURRENT_SOURCE_DIR}/../../../thirdparty/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install/${CMAKE_INSTALL_LIBDIR}/${CMAKE_FIND_LIBRARY_PREFIXES}gpstk${CMAKE_SHARED_LIBRARY_SUFFIX}) | ||||||
|     set(GPSTK_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../thirdparty/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install/include) |     set(GPSTK_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../thirdparty/gpstk-${GNSSSDR_GPSTK_LOCAL_VERSION}/install/include) | ||||||
| endif() | endif() | ||||||
| @@ -50,10 +50,19 @@ if(Boost_FOUND) | |||||||
|     add_executable(rinex2assist ${CMAKE_CURRENT_SOURCE_DIR}/main.cc) |     add_executable(rinex2assist ${CMAKE_CURRENT_SOURCE_DIR}/main.cc) | ||||||
|     set_property(TARGET rinex2assist PROPERTY CXX_STANDARD 14)  # Required by GPSTk |     set_property(TARGET rinex2assist PROPERTY CXX_STANDARD 14)  # Required by GPSTk | ||||||
|     # Do not show warnings raised by GPSTk v3.0.0 |     # Do not show warnings raised by GPSTk v3.0.0 | ||||||
|     target_compile_options(rinex2assist |     if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||||||
|         PUBLIC |        target_compile_options(rinex2assist | ||||||
|             -Wno-deprecated -Wno-unused-parameter -Wno-sign-compare |            PUBLIC | ||||||
|     ) |                -Wno-deprecated -Wno-unused-parameter -Wno-sign-compare -Wno-type-limits -Wno-unused-but-set-variable -Wno-deprecated-copy -Wno-extra | ||||||
|  |        ) | ||||||
|  |     endif() | ||||||
|  |     if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||||||
|  |         target_compile_options(rinex2assist | ||||||
|  |             PUBLIC | ||||||
|  |                 -Wno-deprecated -Wno-unused-parameter -Wno-sign-compare | ||||||
|  |         ) | ||||||
|  |     endif() | ||||||
|  |  | ||||||
|     target_link_libraries(rinex2assist |     target_link_libraries(rinex2assist | ||||||
|         PUBLIC |         PUBLIC | ||||||
|             Boost::iostreams |             Boost::iostreams | ||||||
| @@ -61,8 +70,6 @@ if(Boost_FOUND) | |||||||
|             ${GPSTK_LIBRARY} |             ${GPSTK_LIBRARY} | ||||||
|             Gflags::gflags |             Gflags::gflags | ||||||
|             Threads::Threads |             Threads::Threads | ||||||
|             algorithms_libs |  | ||||||
|             core_receiver |  | ||||||
|             core_system_parameters |             core_system_parameters | ||||||
|     ) |     ) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez