vcpkg/ports/magma/disable-openmp-msvc.patch
Alexander Neumann 97dd26728e
[magma] add port (#35928)
* Add magma port

* fix patch

* no cmake config to fix

* deleted wrong dir

* mark magma fail in ci baseline

* v db

* fix Cflags

* v db

---------

Co-authored-by: MonicaLiu <liuyumei01@beyondsoft.com>
2024-01-17 15:50:19 -08:00

16 lines
443 B
Diff

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" )