From f50ec12d9f1193a2f511f193734c800d750e0897 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Sun, 17 Jan 2010 20:25:28 +0000 Subject: cmake fix broken OSX build: those openmp flags break OSX build, it might only work on other unixes that way --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index a8c6e66678a..81528e431a5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- cgit v1.2.3