1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-04-06 10:47:03 +00:00

Fix CMake script, avoid GPSTK warnings

This commit is contained in:
Carles Fernandez 2018-10-13 14:31:00 +02:00
parent 2f4c24e94e
commit 9710fa9430
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -229,7 +229,8 @@ if(ENABLE_UNIT_TESTING_EXTRA OR ENABLE_SYSTEM_TESTING_EXTRA OR ENABLE_FPGA)
if(NOT GPSTK_FOUND OR ENABLE_OWN_GPSTK)
message(STATUS "GPSTk v${GNSSSDR_GPSTK_LOCAL_VERSION} will be automatically downloaded and built when doing 'make'.")
if ("${TOOLCHAIN_ARG}" STREQUAL "")
set(${TOOLCHAIN_ARG} "-DCMAKE_CXX_FLAGS=-Wno-deprecated")
set(TOOLCHAIN_ARG "-DCMAKE_CXX_FLAGS=\"-Wno-deprecated\"")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
endif("${TOOLCHAIN_ARG}" STREQUAL "")
# if(NOT ENABLE_FPGA)
if(CMAKE_VERSION VERSION_LESS 3.2)