diff options
Diffstat (limited to 'extern/mantaflow/CMakeLists.txt')
-rw-r--r-- | extern/mantaflow/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/extern/mantaflow/CMakeLists.txt b/extern/mantaflow/CMakeLists.txt index 72ce920c621..f4eefbb4d04 100644 --- a/extern/mantaflow/CMakeLists.txt +++ b/extern/mantaflow/CMakeLists.txt @@ -23,6 +23,14 @@ # # ***** END GPL LICENSE BLOCK ***** +# Mantaflow triggers a clang-cl compiler error with versions before 9.0.1 +# Since mantaflow does not appear to be using OpenMP at this point in time, +# disable the flag for now. See https://bugs.llvm.org/show_bug.cgi?id=43175 for details. + +if(MSVC_CLANG AND WITH_OPENMP AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0.1") + remove_cc_flag("-fopenmp") +endif() + set(MANTAVERSION "0.12") add_definitions(-DWITH_FLUID=1) |