[BW]: [NIP] Further CMakeLists.txt cleanup to use target_* features.

This commit is contained in:
vogel76 2014-02-13 12:55:26 +01:00
parent 4571ce36d5
commit 8c49a8b887

View file

@ -171,8 +171,9 @@ IF(WIN32)
target_compile_options(fc PUBLIC /EHa)
ELSE()
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall" )
IF(APPLE)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++ -Wall")
target_compile_options(fc PUBLIC -std=c++11 -stdlib=libc++ -Wall)
ELSE()
target_compile_options(fc PUBLIC -std=c++11 -Wall -fnon-call-exceptions -Wno-unused-local-typedefs -fmax-errors=3)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-local-typedefs -fmax-errors=3 ")