From e2d591b9ff26a146d85ec2a390b0a4a09efe075b Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Tue, 9 Dec 2014 22:53:05 +0100 Subject: [PATCH] Fixed build in travis --- src/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2b1944d9..89dbde21 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,7 +2,7 @@ file(GLOB_RECURSE INC_FILES ../include/*.hpp) file(GLOB_RECURSE SRC_FILES *.cpp) if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)") - add_compile_options( + add_definitions( -fno-exceptions -pedantic -Wall @@ -31,7 +31,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)") endif() if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU)") - add_compile_options( + add_definitions( -Wlogical-op -Wnoexcept -Wstrict-null-sentinel @@ -39,7 +39,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU)") endif() if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_compile_options( + add_definitions( -Wc++11-compat ) endif()