1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-07-24 21:02:56 +00:00

Fix for very old CMake

This commit is contained in:
Carles Fernandez 2021-09-29 12:54:23 +02:00
parent fd5698b39d
commit e09a37ca61
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -34,11 +34,9 @@ else()
) )
endif() endif()
if(CMAKE_C_COMPILER_ID MATCHES "Clang") if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND (CMAKE_VERSION VERSION_GREATER "3.3"))
if(CMAKE_BUILD_TYPE MATCHES "Release") set(MY_C_FLAGS -Wno-unused-parameter)
set(MY_C_FLAGS -Wno-parentheses-equality) target_compile_options(core_libs_supl PUBLIC $<$<COMPILE_LANGUAGE:C>:${MY_C_FLAGS}>)
target_compile_options(core_libs_supl PUBLIC $<$<COMPILE_LANGUAGE:C>:${MY_C_FLAGS}>)
endif()
endif() endif()
if(OPENSSL_FOUND) if(OPENSSL_FOUND)