Forráskód Böngészése

Fixed build in travis

Benoit Blanchon 11 éve
szülő
commit
e2d591b9ff
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      src/CMakeLists.txt

+ 3 - 3
src/CMakeLists.txt

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