mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 15:19:00 +08:00
26 lines
608 B
Diff
26 lines
608 B
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index ec14eea..f83d678 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -55,11 +55,15 @@ if(NOT Eigen3_FOUND)
|
||
|
)
|
||
|
endif()
|
||
|
|
||
|
-if(BUILD_WITH_OPENMP STREQUAL "auto")
|
||
|
- find_package(OpenMP)
|
||
|
- set(BUILD_WITH_OPENMP ${OpenMP_FOUND})
|
||
|
-elseif(BUILD_WITH_OPENMP)
|
||
|
- find_package(OpenMP REQUIRED)
|
||
|
+if(APPLE)
|
||
|
+ set(BUILD_WITH_OPENMP FALSE)
|
||
|
+else()
|
||
|
+ if(BUILD_WITH_OPENMP STREQUAL "auto")
|
||
|
+ find_package(OpenMP)
|
||
|
+ set(BUILD_WITH_OPENMP ${OpenMP_FOUND})
|
||
|
+ elseif(BUILD_WITH_OPENMP)
|
||
|
+ find_package(OpenMP REQUIRED)
|
||
|
+ endif()
|
||
|
endif()
|
||
|
|
||
|
if (BUILD_WITH_TBB)
|