1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 20:20:35 +00:00

Fix for GCC < 5.0

This commit is contained in:
Carles Fernandez 2021-01-05 10:53:32 +01:00
parent 68fdedb224
commit 6b1ab274b1
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -181,8 +181,10 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang|GNU")
# are defined. Note the different data type of the first argument). By
# default 'incompatible-pointer-types' is a warning only and 'pointer-sign'
# is a warning enabled by '-Wall'. These warnings are only applicable to C.
if(NOT (CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS "5.0"))
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=incompatible-pointer-types -Werror=pointer-sign")
endif()
endif()
option(ENABLE_STRIP "Create a stripped volk_gnsssdr_profile binary (without debugging symbols)" OFF)
if(ENABLE_STRIP)