Skip to content

Commit

Permalink
Merge pull request KarypisLab#14 from pvcStillInGradSchool/fix-linking
Browse files Browse the repository at this point in the history
Remove an unnecessary path and simplify linking commands.
  • Loading branch information
karypis authored Sep 13, 2020
2 parents 556a0aa + 521a2c3 commit 0eb0517
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions programs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
# These programs use internal metis data structures.
include_directories(../libmetis)
link_directories(/home/karypis/local/lib)
link_libraries(metis)
# Build program.
add_executable(gpmetis gpmetis.c cmdline_gpmetis.c io.c stat.c)
add_executable(ndmetis ndmetis.c cmdline_ndmetis.c io.c smbfactor.c)
add_executable(mpmetis mpmetis.c cmdline_mpmetis.c io.c stat.c)
add_executable(m2gmetis m2gmetis.c cmdline_m2gmetis.c io.c)
add_executable(graphchk graphchk.c io.c)
add_executable(cmpfillin cmpfillin.c io.c smbfactor.c)
foreach(prog gpmetis ndmetis mpmetis m2gmetis graphchk cmpfillin)
target_link_libraries(${prog} metis)
# target_link_libraries(${prog} metis profiler)
endforeach(prog)

if(METIS_INSTALL)
install(TARGETS gpmetis ndmetis mpmetis m2gmetis graphchk cmpfillin
Expand Down

0 comments on commit 0eb0517

Please sign in to comment.