X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=cmake%2FCMakemacosx64.cmake;h=f6c24a416dac87325adaeee6e727d0fc7e89bd0a;hb=94d7319f629e135df60d8d004bfe697ff3dc5132;hp=840e7140d0988f588ea3498b1713eec9c49cd963;hpb=f5cec7ba6dff24b20d1912d0fd45ab7529fe47dd;p=u%2Fmrichter%2FAliRoot.git diff --git a/cmake/CMakemacosx64.cmake b/cmake/CMakemacosx64.cmake index 840e7140d09..f6c24a416da 100644 --- a/cmake/CMakemacosx64.cmake +++ b/cmake/CMakemacosx64.cmake @@ -67,9 +67,18 @@ set ( CLIBCXXOPTS ) set ( CLIBCOPT ) set ( CLIBFOPT ${CLIBDEFS}) -set ( CXXWARN "-Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual -ansi") +set ( CXXWARN "-Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual") -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") + set (CXXWARN "${CXXWARN} -ansi") + +endif( CMAKE_CXX_COMPILER MATCHES "clang") set ( CXXFLAGS "${CXXOPT} ${CXXSTF}") @@ -77,7 +86,7 @@ set ( CXXFLAGSNO "${CXXNOOPT} ${CXXSTF}") set ( CFLAGS "${COPT} -Wall -W -fno-common -pipe -I${FINK_ROOT}/include") -set ( FFLAGS "${FFLAGS} -DFORTRAN_GFORTRAN") +set ( FFLAGS "${FFLAGS} -m64 -DFORTRAN_GFORTRAN") set ( CINTFLAGS )