Skip to content

Commit

Permalink
Still working on macOS...
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnikTobi committed Jul 22, 2024
1 parent 6bea4cf commit 556c728
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ jobs:
if: matrix.os == 'macos-latest'
run: |
brew install llvm libomp
export CC=/usr/local/opt/llvm/bin/clang
export CXX=/usr/local/opt/llvm/bin/clang++
export LDFLAGS="-L/usr/local/opt/llvm/lib"
export CPPFLAGS="-I/usr/local/opt/llvm/include"
export OpenMP_ROOT=$(brew --prefix)/opt/libomp
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
Expand Down
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ if(APPLE)
# set(OpenMP_libgomp_LIBRARY ${OpenMP_CXX_LIB_NAMES} CACHE STRING "" FORCE)
# set(OpenMP_libiomp5_LIBRARY ${OpenMP_CXX_LIB_NAMES} CACHE STRING "" FORCE)
# endif()
message(STATUS "set compipler")
set(CMAKE_C_COMPILER "/usr/local/Cellar/llvm/5.0.1/bin/clang")
set(CMAKE_CXX_COMPILER "/usr/local/Cellar/llvm/5.0.1/bin/clang++")
set(OPENMP_LIBRARIES "/usr/local/Cellar/llvm/5.0.1/lib")
set(OPENMP_INCLUDES "/usr/local/Cellar/llvm/5.0.1/include")

set(OPENMP_LIBRARIES "/usr/local/opt/llvm/lib")
link_directories(${OPENMP_LIBRARIES})
# message(STATUS "set compipler")
# set(CMAKE_C_COMPILER "/usr/local/Cellar/llvm/5.0.1/bin/clang")
# set(CMAKE_CXX_COMPILER "/usr/local/Cellar/llvm/5.0.1/bin/clang++")
# set(OPENMP_LIBRARIES "/usr/local/Cellar/llvm/5.0.1/lib")
# set(OPENMP_INCLUDES "/usr/local/Cellar/llvm/5.0.1/include")

# set(OPENMP_LIBRARIES "/usr/local/opt/llvm/lib")
# link_directories(${OPENMP_LIBRARIES})
endif()

find_package(PkgConfig REQUIRED)
Expand Down

0 comments on commit 556c728

Please sign in to comment.