Skip to content

Commit

Permalink
Added compile flags for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
eg0000r-pub committed Feb 15, 2024
1 parent 5f12066 commit 0656736
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
with:
submodules: recursive
- run: brew install llvm libomp
- run: >
export PATH="/usr/local/opt/llvm/bin:$PATH" && export LDFLAGS="-L/usr/local/opt/llvm/lib" &&
export CPPFLAGS="-I/usr/local/opt/llvm/include" && export CC=/usr/local/opt/llvm/bin/clang &&
export CXX=/usr/local/opt/llvm/bin/clang++ && cmake .
- run: |
export CC=/usr/local/opt/llvm/bin/clang
export CXX=/usr/local/opt/llvm/bin/clang++
cmake .
- run: cmake --build .
- run: ctest

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include(CTest)

set(ERROR_ON_WARN OFF)

set(CMAKE_LIBGRAN_USE_OMP OFF)
set(CMAKE_LIBGRAN_USE_OMP ON)

if (${CMAKE_LIBGRAN_USE_OMP})
add_compile_definitions(LIBGRAN_USE_OMP)
Expand Down

0 comments on commit 0656736

Please sign in to comment.