forked from bblanchon/ArduinoJson
CMake: fix detection of GCC 4.8
This commit is contained in:
@ -34,7 +34,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
if((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.8) AND(NOT ${COVERAGE}))
|
if((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.9) AND(NOT ${COVERAGE}))
|
||||||
add_compile_options(-g -Og)
|
add_compile_options(-g -Og)
|
||||||
else() # GCC 4.8
|
else() # GCC 4.8
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
|
Reference in New Issue
Block a user