diff --git a/cmake/scotch.cmake b/cmake/scotch.cmake index 88a40c7..1863efd 100644 --- a/cmake/scotch.cmake +++ b/cmake/scotch.cmake @@ -12,7 +12,7 @@ endif() if (APPLE) set(SCOTCH_MAKE Makefile.inc.i686_mac_darwin10) set(SCOTCH_CFLAGS "-Drestrict=__restrict -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_PTHREAD -DSCOTCH_RENAME -DCOMMON_PTHREAD_BARRIER -I${ZLIB_INCLUDE_DIR}") - set(SCOTCH_LDFLAGS "-Wl,-rpath,${CMAKE_INSTALL_PREFIX}/lib ${ZLIB_LIBRARIES} -lz -lm -lpthread") + set(SCOTCH_LDFLAGS "-Wl,-rpath,${CMAKE_INSTALL_PREFIX}/lib ${ZLIB_LIBRARIES} -lm -lpthread") else () if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") set(SCOTCH_MAKE Makefile.inc.x86-64_pc_linux2)