mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 05:29:00 +08:00
97dd26728e
* 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>
16 lines
443 B
Diff
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" )
|