diff options
author | Arto Kitula <arto.kitula@gmail.com> | 2019-01-26 16:14:51 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-26 17:48:56 +0300 |
commit | b7a9e980a11a085a3bc7ef8e267b967197f47447 (patch) | |
tree | cbd8f045c4b2045828bfbf62799eb4dc55469f40 /source | |
parent | 8d4c4775a0a686e93fbaaf02057f8ab8ef4896c3 (diff) |
macOS: add support for OpenMP, making smoke/fluid/cloth simulations faster.
This bring macOS on par with Windows and Linux. It uses the OpenMP library
added to our precompiled libraries.
Custom flags are set because FindOpenMP from CMake below 3.12 does not support
AppleClang, and more recent versions do not work with our custom directory
location either.
Differential Revision: https://developer.blender.org/D4257
Diffstat (limited to 'source')
-rw-r--r-- | source/creator/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index a553b8a569b..d2255bbd894 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -914,6 +914,13 @@ elseif(APPLE) blender.app/Contents/ ) + if(WITH_OPENMP AND OPENMP_CUSTOM) + install( + FILES ${LIBDIR}/openmp/lib/libomp.dylib + DESTINATION blender.app/Contents/Resources/lib + ) + endif() + if(WITH_LLVM AND NOT LLVM_STATIC) install( FILES ${LIBDIR}/llvm/lib/libLLVM-3.4.dylib |