Fixed build in travis

This commit is contained in:
Benoit Blanchon
2014-12-09 22:53:05 +01:00
parent 8082185ac4
commit e2d591b9ff

View File

@ -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()