macOS: add support for OpenMP, making smoke/fluid/cloth simulations faster.
[blender.git] / build_files / build_environment / cmake / openmp.cmake
index ba8e6248126b39bc25b384c88699145a0cc41072..d8224020ecfa7399fd17ff9d0060a9ff0a84ce16 100644 (file)
@@ -23,7 +23,8 @@ ExternalProject_Add(external_openmp
        URL_HASH MD5=${OPENMP_HASH}
        PREFIX ${BUILD_DIR}/openmp
        CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${LIBDIR}/openmp ${DEFAULT_CMAKE_FLAGS}
-       INSTALL_DIR ${LIBDIR}/clang
+       INSTALL_COMMAND cd ${BUILD_DIR}/openmp/src/external_openmp-build && install_name_tool -id '@executable_path/../Resources/lib/libomp.dylib' runtime/src/libomp.dylib && make install
+       INSTALL_PATH ${LIBDIR}/openmp
 )
 
 add_dependencies(