Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnikTobi committed Jul 22, 2024
1 parent 2e86ae9 commit 6bea4cf
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project(Mandelbrot LANGUAGES C)


# See: https://stackoverflow.com/a/55094428
# if(APPLE)
if(APPLE)
# if(CMAKE_C_COMPILER_ID MATCHES "Clang")
# set(OpenMP_C "${CMAKE_C_COMPILER}" CACHE STRING "" FORCE)
# set(OpenMP_C_FLAGS "-fopenmp=libomp -Wno-unused-command-line-argument" CACHE STRING "" FORCE)
Expand All @@ -21,7 +21,15 @@ project(Mandelbrot LANGUAGES C)
# set(OpenMP_libgomp_LIBRARY ${OpenMP_CXX_LIB_NAMES} CACHE STRING "" FORCE)
# set(OpenMP_libiomp5_LIBRARY ${OpenMP_CXX_LIB_NAMES} CACHE STRING "" FORCE)
# endif()
# 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})
endif()

find_package(PkgConfig REQUIRED)
find_package(OpenMP REQUIRED)
Expand Down

0 comments on commit 6bea4cf

Please sign in to comment.