1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-18 11:09:56 +00:00

Fix for CMake 3.0

This commit is contained in:
Carles Fernandez 2020-08-23 09:42:35 +02:00
parent c6aec7a105
commit 8aae7b6ce1
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -11,8 +11,11 @@ endif()
project(CpuFeatures VERSION 0.1.0 LANGUAGES C)
set(CMAKE_C_STANDARD 99)
if(NOT (CMAKE_VERSION VERSION_LESS "3.1"))
set(CMAKE_C_STANDARD 99)
else()
add_compile_options("$<$<STREQUAL:$<TARGET_PROPERTY:LINKER_LANGUAGE>,C>:-std=gnu99>")
endif()
# Default Build Type to be Release
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING