cmake fix broken OSX build: those openmp flags break OSX build, it might only work...
[blender-staging.git] / CMakeLists.txt
index a8c6e66678a2b0dcc3a86afb53d4c45f5af67f92..81528e431a59d863588a217da13c9bdcfe5a86cd 100644 (file)
@@ -82,11 +82,11 @@ OPTION(WITH_INSTALL       "Install accompanying scripts and language files neede
 OPTION(WITH_OPENCOLLADA                "Enable OpenCollada Support (http://www.opencollada.org/)"      ON)
 
 # Unix defaults to OpenMP On
-IF (UNIX)
+IF(UNIX AND NOT APPLE)
        OPTION(WITH_OPENMP        "Enable OpenMP (has to be supported by the compiler)" ON)
-ELSE(UNIX)
+ELSE()
        OPTION(WITH_OPENMP        "Enable OpenMP (has to be supported by the compiler)" OFF)
-ENDIF(UNIX)
+ENDIF()
 
 IF (APPLE)
        OPTION(WITH_COCOA         "Use Cocoa framework instead of deprecated Carbon" ON)