Browse Source

* fix -std= option for gcc

pull/98/head
hagen 10 years ago
parent
commit
d08a08acb3
  1. 2
      build/CMakeLists.txt

2
build/CMakeLists.txt

@ -59,7 +59,7 @@ endif () @@ -59,7 +59,7 @@ endif ()
# compiler flags customization (by vendor)
add_definitions ( "-Wall -Wextra" )
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_definitions( "-std=c++0x" )
add_definitions( "-std=c++11" )
if (WITH_HARDENING)
add_definitions( "-D_FORTIFY_SOURCE=2" )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wformat -Wformat-security -Werror=format-security" )

Loading…
Cancel
Save