X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=cmake%2FCMakemacosxicc.cmake;h=bc79407c440a51df0a8993c2b3ee3436ac3a3236;hb=30933baae5604d9d2da4d61cfe4f9472b6e78500;hp=94a8bdae553e7c726f95cf80d7c24b3dcb0a7448;hpb=03d1e24f291a42c85e183918ffc59f1baead51a8;p=u%2Fmrichter%2FAliRoot.git diff --git a/cmake/CMakemacosxicc.cmake b/cmake/CMakemacosxicc.cmake index 94a8bdae553..bc79407c440 100644 --- a/cmake/CMakemacosxicc.cmake +++ b/cmake/CMakemacosxicc.cmake @@ -32,7 +32,15 @@ if( NOT FINK_ROOT ) endif( NOT FINK_ROOT ) -set ( OPT "-O -g") +# Global Optimization +set ( OPT ) +# ------- Setting optimization flags for default configuration ------- +if((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None")) + set(DEFAULT_CXX_FLAGS "-O -g") + set(OPT "${DEFAULT_CXX_FLAGS}") + message("-- Setting compiler flags for default configuration: ${DEFAULT_CXX_FLAGS}") +endif((NOT CMAKE_BUILD_TYPE) OR (CMAKE_BUILD_TYPE STREQUAL "None")) +# -------------------------------------------------------------------- set ( NOOPT "-g") set ( CXXOPT ${OPT})