1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 12:10:34 +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()
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
if(CMAKE_BUILD_TYPE MATCHES "Release")
set(MY_C_FLAGS -Wno-parentheses-equality)
target_compile_options(core_libs_supl PUBLIC $<$<COMPILE_LANGUAGE:C>:${MY_C_FLAGS}>)
endif()
if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND (CMAKE_VERSION VERSION_GREATER "3.3"))
set(MY_C_FLAGS -Wno-unused-parameter)
target_compile_options(core_libs_supl PUBLIC $<$<COMPILE_LANGUAGE:C>:${MY_C_FLAGS}>)
endif()
if(OPENSSL_FOUND)