From 9392ca2afe6bf6b543f0c08ec137d8404580b634 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Fri, 14 Feb 2014 20:07:39 -0500 Subject: [PATCH] target_compile_options attempts to apply c++ flags to compile c objects --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f4567b0..e82ea52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,7 +175,7 @@ ELSE() SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall" ) IF(APPLE) - target_compile_options(fc PUBLIC -std=c++11 -stdlib=libc++ -Wall) + SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -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 ")