From a64e73a2793ae7036522fca4a7f5c0ef8f2548e7 Mon Sep 17 00:00:00 2001 From: Tobias Hienzsch Date: Sun, 14 Jul 2024 09:20:08 +0200 Subject: [PATCH] Use OpenMP with AppleClang --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 167503b..e72ad7a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,13 +31,13 @@ jobs: - name: macOS-X64 os: macos-13 osx_target: "10.15" - cmake_flags: "-D CMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang -D CMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++" + cmake_flags: '-D OpenMP_ROOT=`brew list libomp | grep libomp.a | sed -E "s/\/lib\/.*//"`' cxx_flags: "-march=x86-64-v2" - name: macOS-ARM64 os: macos-14 osx_target: "11.0" - cmake_flags: "-D CMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang -D CMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++" + cmake_flags: '-D OpenMP_ROOT=`brew list libomp | grep libomp.a | sed -E "s/\/lib\/.*//"`' cxx_flags: "" # - name: Windows @@ -61,7 +61,7 @@ jobs: - name: Install dependencies (macOS) if: runner.os == 'macOS' - run: brew install conan ninja llvm + run: brew install conan libomp llvm ninja - name: Install dependencies (Windows) if: runner.os == 'Windows'