diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/magma/disable-openmp-msvc.patch | |
Diffstat (limited to 'vcpkg/ports/magma/disable-openmp-msvc.patch')
| -rw-r--r-- | vcpkg/ports/magma/disable-openmp-msvc.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/magma/disable-openmp-msvc.patch b/vcpkg/ports/magma/disable-openmp-msvc.patch new file mode 100644 index 0000000..b143995 --- /dev/null +++ b/vcpkg/ports/magma/disable-openmp-msvc.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 828911d05f..a4f5b35ef3 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -103,6 +103,10 @@ endif() + + # ---------------------------------------- + # locate OpenMP ++if(MSVC AND CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") ++ set(CMAKE_DISBLE_FIND_PACKAGE_OpenMP ON) ++ # MSVC OpenMP is not enough to compile ++endif() + find_package( OpenMP ) + if (OPENMP_FOUND) + message( STATUS "Found OpenMP" ) |