]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - cmake/CMakemacosxicc.cmake
CMake: removing qpythia from the depedencies
[u/mrichter/AliRoot.git] / cmake / CMakemacosxicc.cmake
index 94a8bdae553e7c726f95cf80d7c24b3dcb0a7448..bc79407c440a51df0a8993c2b3ee3436ac3a3236 100644 (file)
@@ -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})