mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-02-07 14:40:12 +00:00
Shut down warnings raised by GPSTk in GCC
This commit is contained in:
parent
580ddfdff0
commit
f193d5afb2
@ -23,10 +23,18 @@ 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
|
||||||
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
|
target_compile_options(obsdiff
|
||||||
|
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
|
target_compile_options(obsdiff
|
||||||
PUBLIC
|
PUBLIC
|
||||||
-Wno-deprecated -Wno-unused-parameter -Wno-sign-compare -Wno-reorder
|
-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})
|
||||||
|
@ -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
|
||||||
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
|
target_compile_options(rinex2assist
|
||||||
|
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
|
target_compile_options(rinex2assist
|
||||||
PUBLIC
|
PUBLIC
|
||||||
-Wno-deprecated -Wno-unused-parameter -Wno-sign-compare
|
-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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user