CMakeLists.txt: Disable OpenMP only when using a llvm-mingw toolchain

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-11-01 11:20:19 +01:00
parent 5c1780a9af
commit 782fdfdcb9
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ endif()
find_package(Threads)
if (${IS_GNU} OR ${IS_CLANG})
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
if (Threads_FOUND AND NOT MINGW)
if (Threads_FOUND AND NOT (MINGW AND ${IS_CLANG}))
include(FindOpenMP)
if (OpenMP_CXX_FOUND)
set(CMAKE_CXX_FLAGS "${OpenMP_CXX_FLAGS} ${CMAKE_CXX_FLAGS}")