mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-26 03:54:16 +00:00
Merge pull request #256 from EinMByte/master
Update .gitignore, fix typo in CMakeLists.txt.
This commit is contained in:
commit
5db0448c6b
2
.gitignore
vendored
2
.gitignore
vendored
@ -15,6 +15,8 @@ build/cmake_install.cmake
|
|||||||
build/i2pd
|
build/i2pd
|
||||||
build/libcommon.a
|
build/libcommon.a
|
||||||
build/libi2pd.a
|
build/libi2pd.a
|
||||||
|
build/CTestTestfile.cmake
|
||||||
|
build/i2pd_tests
|
||||||
|
|
||||||
|
|
||||||
# Autotools
|
# Autotools
|
||||||
|
@ -119,12 +119,13 @@ if (CXX11_SUPPORTED)
|
|||||||
elseif (CXX0X_SUPPORTED) # gcc 4.6
|
elseif (CXX0X_SUPPORTED) # gcc 4.6
|
||||||
add_definitions( "-std=c++0x" )
|
add_definitions( "-std=c++0x" )
|
||||||
elseif (NOT MSVC)
|
elseif (NOT MSVC)
|
||||||
message(SEND_ERROR "C++11 standart not seems to be supported by compiler. Too old version?")
|
message(SEND_ERROR "C++11 standard not supported by compiler. Version too old?")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
if (WITH_HARDENING)
|
if (WITH_HARDENING)
|
||||||
add_definitions( "-D_FORTIFY_SOURCE=2" )
|
add_definitions( "-D_FORTIFY_SOURCE=2" )
|
||||||
|
file (GLOB HEADERS "${CMAKE_SOURCE_DIR}/util/*.h")
|
||||||
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" )
|
||||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector --param ssp-buffer-size=4" )
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector --param ssp-buffer-size=4" )
|
||||||
endif ()
|
endif ()
|
||||||
@ -317,4 +318,4 @@ if (WITH_TESTS)
|
|||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
add_test(i2pdTest i2pd_tests)
|
add_test(i2pdTest i2pd_tests)
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user