Skip to content

Commit

Permalink
Set types for non-metis builds
Browse files Browse the repository at this point in the history
In case we are not building with the metis library, we still need to set
`metis_*_kind` since those types are used even without the metis
library. It would be helpful to clean that up a bit better and
completely separate the metis type issue from the rest of the code that
doesn't use metis.

Fixes: #43
  • Loading branch information
nicolasbock committed Apr 7, 2017
1 parent 0767637 commit 08b8b8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ if(PROGRESS_GRAPHLIB)
else()
add_definitions(-DMETIS_REAL_KIND=0d0)
endif()
else()
add_definitions(-DMETIS_INDEX_KIND=4)
add_definitions(-DMETIS_REAL_KIND=0d0)
endif()

set(PROGRESS_OPENMP TRUE CACHE BOOL "Whether to compile with OpenMP support")
Expand Down

0 comments on commit 08b8b8f

Please sign in to comment.