Skip to content

Commit

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

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Dec 16, 2023
1 parent 5072fd7 commit 82cc73f
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 82cc73f

Please sign in to comment.