From 8c49a8b88723cff07f62499cf0f544d490578bb3 Mon Sep 17 00:00:00 2001 From: vogel76 Date: Thu, 13 Feb 2014 12:55:26 +0100 Subject: [PATCH] [BW]: [NIP] Further CMakeLists.txt cleanup to use target_* features. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 84d9b4b..efb9535 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ")