Fixed: Compilation under Ubuntu 16.04

--HG--
branch : develop
This commit is contained in:
kervala 2018-07-18 10:41:11 +02:00
parent 7b23be0c46
commit 728c602bc3

View file

@ -672,7 +672,7 @@ MACRO(NL_SETUP_BUILD)
IF(APPLE)
SET(OBJC_FLAGS -fobjc-abi-version=2 -fobjc-legacy-dispatch -fobjc-weak)
IF(NOT XCODE)
IF(CMAKE_OSX_ARCHITECTURES)
SET(TARGETS_COUNT 0)
@ -959,8 +959,6 @@ MACRO(NL_SETUP_BUILD)
ADD_PLATFORM_FLAGS("-fPIC")
ENDIF()
SET(PLATFORM_CXXFLAGS "${PLATFORM_CXXFLAGS} -ftemplate-depth-48")
# hardening
ADD_PLATFORM_FLAGS("-fstack-protector --param=ssp-buffer-size=4")