From 7efba4bd12c60cd8df5150e2080c820f9c0ddc5d Mon Sep 17 00:00:00 2001 From: Alex Spataru Date: Fri, 29 Nov 2024 22:27:28 -0500 Subject: [PATCH] Do not link to OpenMP on macOS --- CMakeLists.txt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 63c4f32d..04c16871 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -130,20 +130,10 @@ if(PRODUCTION_OPTIMIZATION) # macOS-specific settings elseif(APPLE) - include_directories( - "/opt/homebrew/opt/libomp/include" - "/opt/homebrew/opt/llvm/include" - ) - link_directories( - "/opt/homebrew/opt/libomp/lib" - "/opt/homebrew/opt/llvm/lib" - ) - add_compile_options( -O3 # Optimize for speed -Wall # Enable most warning messages -Wextra # Enable additional warning messages - -fopenmp=libomp # Add support for OpenMP -fvectorize # Enable loop vectorization -fslp-vectorize # Enable SLP vectorization -fno-fast-math # Standard-compliant floating point math