Commits
Sean Farley authored 4df84cbb8ad
1 + | # HG changeset patch |
2 + | # User Sean Farley <sean@mcs.anl.gov> |
3 + | # Date 1332262784 18000 |
4 + | # Tue Mar 20 11:59:44 2012 -0500 |
5 + | # Node ID 9328e5d72eb288f306a95050929426ad9a6724d2 |
6 + | # Parent 5e0bb4f071fc7edcdd26a2326e61301833f12177 |
7 + | cmake: add math library -lm |
8 + | |
9 + | diff -r 5e0bb4f071fc -r 9328e5d72eb2 programs/CMakeLists.txt |
10 + | --- a/programs/CMakeLists.txt Tue Mar 20 11:59:43 2012 -0500 |
11 + | +++ b/programs/CMakeLists.txt Tue Mar 20 11:59:44 2012 -0500 |
12 + | |
13 + | add_executable(parmetis_prog parmetis.c io.c adaptgraph.c) |
14 + | set_target_properties(parmetis_prog PROPERTIES OUTPUT_NAME parmetis) |
15 + | add_executable(pometis pometis.c io.c) |
16 + | # Link to libparmetis. |
17 + | foreach(prog ptest mtest parmetis_prog pometis) |
18 + | - target_link_libraries(${prog} parmetis) |
19 + | + target_link_libraries(${prog} parmetis m) |
20 + | endforeach(prog) |
21 + | |
22 + | install(TARGETS ptest mtest parmetis_prog pometis |
23 + | RUNTIME DESTINATION bin) |