From 550a51af7257cd1ec207d70075dcb7898062d4f5 Mon Sep 17 00:00:00 2001 From: fca Date: Fri, 9 Sep 2011 13:45:32 +0000 Subject: [PATCH] Removing flags unrecognised by clang --- cmake/CMakemacosx64.cmake | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cmake/CMakemacosx64.cmake b/cmake/CMakemacosx64.cmake index 840e7140d09..93833e9a15f 100644 --- a/cmake/CMakemacosx64.cmake +++ b/cmake/CMakemacosx64.cmake @@ -69,7 +69,16 @@ set ( CLIBFOPT ${CLIBDEFS}) set ( CXXWARN "-Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual -ansi") -set ( CXXSTF "-pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -fno-default-inline -fno-inline -I/usr/X11R6/include -I${FINK_ROOT}/include") +if ( CMAKE_CXX_COMPILER MATCHES "clang") + + set ( CXXSTF "-pipe -fsigned-char -fno-common -fmessage-length=0 -fno-inline -I/usr/X11R6/include -I${FINK_ROOT}/include") + +else( CMAKE_CXX_COMPILER MATCHES "clang") + + set ( CXXSTF "-pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -fno-default-inline -fno-inline -I/usr/X11R6/include -I${FINK_ROOT}/include") + +endif( CMAKE_CXX_COMPILER MATCHES "clang") + set ( CXXFLAGS "${CXXOPT} ${CXXSTF}") -- 2.43.0