Commit 5a3ba6bb authored by MERCIER Michael's avatar MERCIER Michael

Add C++11 option for GCC in Cmake

parent 28fc5583
......@@ -42,7 +42,7 @@ INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/batsim
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set_property(TARGET batsim APPEND_STRING PROPERTY COMPILE_FLAGS "-Wall -Wextra -g")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set_property(TARGET batsim APPEND_STRING PROPERTY COMPILE_FLAGS "-Wall -Wextra -g")
set_property(TARGET batsim APPEND_STRING PROPERTY COMPILE_FLAGS "-Wall -Wextra -g -std=c++11")
else()
message("Compiler is unknown, warnings will NOT be added to it")
endif()
\ No newline at end of file
endif()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment