File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,6 @@ set(LBC_INC "${CMAKE_CURRENT_SOURCE_DIR}/include")
42
42
set (LBC_SRC "${CMAKE_CURRENT_SOURCE_DIR} /src" )
43
43
AUX_SOURCE_DIRECTORY (${LBC_SRC} LBC_SRC_FILES )
44
44
45
-
46
- include (metis )
47
- if (METIS_FOUND )
48
- add_definitions (-DMETIS )
49
- set (METIS_SOURCE_FILES "${SPARSE_UTIL_SRC} /metis_interface.cpp" )
50
- endif ()
51
-
52
45
find_package (OpenMP )
53
46
if (OpenMP_FOUND )
54
47
if (APPLE ) #TODO: there might be a better support
@@ -57,10 +50,20 @@ if(OpenMP_FOUND)
57
50
include_directories (
58
51
${OpenMP_CXX_INCLUDE_DIRS}
59
52
)
53
+ link_libraries (
54
+ OpenMP::OpenMP_CXX
55
+ )
60
56
add_definitions (-DENABLE_OPENMP )
61
57
add_definitions (-D__OPENMP__ )
62
58
endif ()
63
59
60
+ include (metis )
61
+ if (METIS_FOUND )
62
+ add_definitions (-DMETIS )
63
+ set (METIS_SOURCE_FILES "${SPARSE_UTIL_SRC} /metis_interface.cpp" )
64
+ endif ()
65
+
66
+
64
67
file (GLOB_RECURSE EXT_SRC ${CMAKE_CURRENT_SOURCE_DIR} /utils/external/*.cpp
65
68
${CMAKE_CURRENT_SOURCE_DIR} /utils/external/*.c )
66
69
add_library (sym_amd STATIC
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ It can be used within code generators or libraries. For more information see
14
14
### Prerequisites
15
15
* CMake
16
16
* C++ compiler (GCC, ICC, or CLang)
17
- * METIS (optional) dependency for running the demo efficiently
18
- and is handled by the cmake.
17
+ * METIS and OpenMP (optional) dependency for running the demo efficiently
18
+ and are handled by the cmake.
19
19
20
20
### Linux
21
21
Then install LBC by following commands:
You can’t perform that action at this time.
0 commit comments