mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:44:15 +00:00
* fix -std= option for gcc
This commit is contained in:
parent
136bca38cb
commit
d08a08acb3
@ -59,7 +59,7 @@ endif ()
|
|||||||
# compiler flags customization (by vendor)
|
# compiler flags customization (by vendor)
|
||||||
add_definitions ( "-Wall -Wextra" )
|
add_definitions ( "-Wall -Wextra" )
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
add_definitions( "-std=c++0x" )
|
add_definitions( "-std=c++11" )
|
||||||
if (WITH_HARDENING)
|
if (WITH_HARDENING)
|
||||||
add_definitions( "-D_FORTIFY_SOURCE=2" )
|
add_definitions( "-D_FORTIFY_SOURCE=2" )
|
||||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wformat -Wformat-security -Werror=format-security" )
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wformat -Wformat-security -Werror=format-security" )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user