Skip to content

Commit

Permalink
fix: remove -fopenmp option for macOS builds (#1653)
Browse files Browse the repository at this point in the history
```
clang: error: unsupported option '-fopenmp'
```

fixes #1652, relates to Homebrew/homebrew-core#157199

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 authored Dec 18, 2023
1 parent becb894 commit 513cb1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/graph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ file(GLOB_RECURSE GRAPH_SRC_FILES "${CMAKE_CURRENT_SOURCE_DIR}" "fragment/*.cc"

add_library(vineyard_graph ${GRAPH_SRC_FILES} ${powturbo-target-objects})
target_add_debuginfo(vineyard_graph)
target_compile_options(vineyard_graph PUBLIC "-fopenmp")
target_link_options(vineyard_graph PUBLIC "-fopenmp")
if(NOT APPLE)
target_compile_options(vineyard_graph PUBLIC "-fopenmp")
target_link_options(vineyard_graph PUBLIC "-fopenmp")
endif()
target_include_directories(vineyard_graph PUBLIC ${MPI_CXX_INCLUDE_PATH})

find_package(Boost COMPONENTS leaf)
Expand Down

0 comments on commit 513cb1c

Please sign in to comment.