Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Verwiebe <info@jensverwiebe.de>2014-02-19 02:38:48 +0400
committerJens Verwiebe <info@jensverwiebe.de>2014-02-19 02:38:56 +0400
commitad4c12fe01d47d5b3092865ecdb9f49cf8c79aaf (patch)
treef5f3080959d42b6e3a47f84643fa6f0a1847e6d8 /CMakeLists.txt
parentace071f99eba5a0d51ed05ae01a3e42499ffc02b (diff)
OSX/CMAKE: make linking and bundling of clang omp lib work,
Cmake will still not find -fopenmp working, so the user must set WITH_OPENMP and flags manually
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b022233becb..9f096461aa7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1854,6 +1854,12 @@ elseif(APPLE)
message(STATUS "OSL not found")
endif()
endif()
+
+ if(WITH_OPENMP AND CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT ${CMAKE_C_COMPILER_VERSION} VERSION_LESS '3.4')
+ include_directories(${LIBDIR}/openmp/include)
+ LINK_DIRECTORIES(${LIBDIR}/openmp/lib)
+ execute_process(COMMAND cp ${LIBDIR}/openmp/lib/libiomp5.dylib ${CMAKE_BINARY_DIR}/bin/libiomp5.dylib) # needed for imtermediate binaries, due lib id is @loader_path
+ endif()
set(EXETYPE MACOSX_BUNDLE)