mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-31 19:24:48 +02:00
Fixed build in travis
This commit is contained in:
@@ -2,7 +2,7 @@ file(GLOB_RECURSE INC_FILES ../include/*.hpp)
|
|||||||
file(GLOB_RECURSE SRC_FILES *.cpp)
|
file(GLOB_RECURSE SRC_FILES *.cpp)
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
|
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
|
||||||
add_compile_options(
|
add_definitions(
|
||||||
-fno-exceptions
|
-fno-exceptions
|
||||||
-pedantic
|
-pedantic
|
||||||
-Wall
|
-Wall
|
||||||
@@ -31,7 +31,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU)")
|
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU)")
|
||||||
add_compile_options(
|
add_definitions(
|
||||||
-Wlogical-op
|
-Wlogical-op
|
||||||
-Wnoexcept
|
-Wnoexcept
|
||||||
-Wstrict-null-sentinel
|
-Wstrict-null-sentinel
|
||||||
@@ -39,7 +39,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU)")
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
add_compile_options(
|
add_definitions(
|
||||||
-Wc++11-compat
|
-Wc++11-compat
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user