Skip to content

Commit

Permalink
build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cheshmi committed Dec 4, 2021
1 parent 1d7dc1d commit 88ea98f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ set(LBC_INC "${CMAKE_CURRENT_SOURCE_DIR}/include")
set(LBC_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src")
AUX_SOURCE_DIRECTORY(${LBC_SRC} LBC_SRC_FILES)


include(metis)
if(METIS_FOUND)
add_definitions(-DMETIS)
set(METIS_SOURCE_FILES "${SPARSE_UTIL_SRC}/metis_interface.cpp")
endif()

find_package(OpenMP)
if(OpenMP_FOUND)
if(APPLE) #TODO: there might be a better support
Expand All @@ -57,10 +50,20 @@ if(OpenMP_FOUND)
include_directories(
${OpenMP_CXX_INCLUDE_DIRS}
)
link_libraries(
OpenMP::OpenMP_CXX
)
add_definitions(-DENABLE_OPENMP)
add_definitions(-D__OPENMP__)
endif()

include(metis)
if(METIS_FOUND)
add_definitions(-DMETIS)
set(METIS_SOURCE_FILES "${SPARSE_UTIL_SRC}/metis_interface.cpp")
endif()


file(GLOB_RECURSE EXT_SRC ${CMAKE_CURRENT_SOURCE_DIR}/utils/external/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/utils/external/*.c)
add_library(sym_amd STATIC
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ It can be used within code generators or libraries. For more information see
### Prerequisites
* CMake
* C++ compiler (GCC, ICC, or CLang)
* METIS (optional) dependency for running the demo efficiently
and is handled by the cmake.
* METIS and OpenMP (optional) dependency for running the demo efficiently
and are handled by the cmake.

### Linux
Then install LBC by following commands:
Expand Down

0 comments on commit 88ea98f

Please sign in to comment.