From 782fdfdcb957b8e2434cac50f51e7a7a0bd150b3 Mon Sep 17 00:00:00 2001 From: Username404 Date: Tue, 1 Nov 2022 11:20:19 +0100 Subject: [PATCH] CMakeLists.txt: Disable OpenMP only when using a llvm-mingw toolchain Signed-off-by: Username404 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4591324..39185e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}")