diff options
author | Ray Molenkamp <github@lazydodo.com> | 2019-10-07 19:24:13 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2019-10-07 19:24:13 +0300 |
commit | d2e4b13b9c4a9fa61cfcdc26a8d1dd8e5a4ac557 (patch) | |
tree | 3066d1cc859d60fa83b7bcb353180751481fa1d5 /build_files/cmake/macros.cmake | |
parent | fc9e921495312ace23af11a69e738a8a7adbaeed (diff) |
CMake: Add support for building with OpenMP support for clang on windows.
mostly minor c/cxx/linker flags, only tested with clang 9.0.0
Differential Revision: https://developer.blender.org/D5976
Reviewers: brecht, jesterking
Diffstat (limited to 'build_files/cmake/macros.cmake')
-rw-r--r-- | build_files/cmake/macros.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index e159dd9e5ee..f642a199915 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -1209,7 +1209,9 @@ macro(openmp_delayload ) if(MSVC) if(WITH_OPENMP) - if(MSVC_VERSION EQUAL 1800) + if(MSVC_CLANG) + set(OPENMP_DLL_NAME "libomp") + elseif(MSVC_VERSION EQUAL 1800) set(OPENMP_DLL_NAME "vcomp120") else() set(OPENMP_DLL_NAME "vcomp140") |