We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e86364 commit c7e53b0Copy full SHA for c7e53b0
CMakeLists.txt
@@ -373,6 +373,12 @@ else(EXTERNAL_METIS_PATH)
373
target_include_directories(dgl PRIVATE "third_party/METIS/include")
374
# Compile METIS
375
if(NOT MSVC)
376
+ # When building on ubi7, it fails with the following error:
377
+ # /usr/include/signal.h:156:29: error: unknown type name 'siginfo_t'.
378
+ # So I(Rui) added the following 2 lines to fix the issue.
379
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_POSIX_C_SOURCE=200809L")
380
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_POSIX_C_SOURCE=200809L")
381
+
382
set(GKLIB_PATH "${CMAKE_CURRENT_SOURCE_DIR}/third_party/GKlib")
383
include(${GKLIB_PATH}/GKlibSystem.cmake)
384
include_directories(${GKLIB_PATH})
0 commit comments