From 8fff0347114f4c0637339df9a52994e968710b90 Mon Sep 17 00:00:00 2001 From: Vikram Rajkumar Date: Thu, 24 Jul 2014 15:33:56 -0400 Subject: [PATCH] Fix linux clang compilation --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fb27c3c..773adae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -202,7 +202,9 @@ ELSE() IF(APPLE) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++ -Wall") ELSE() - target_compile_options(fc PUBLIC -std=c++11 -Wall -fnon-call-exceptions) + if( NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" ) + target_compile_options(fc PUBLIC -std=c++11 -Wall -fnon-call-exceptions) + endif() SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -fnon-call-exceptions") ENDIF() ENDIF()