vcpkg/ports/small-gicp/disable_openmp_osx.patch
2024-06-26 21:26:53 -07:00

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)