Permalink
Browse files

Call libm directly, so must link it directly

  • Loading branch information...
1 parent adc0b75 commit e133f220b56e6d7e2d575b3182af3c23cde94c70 @jedbrown committed Oct 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 CMakeLists.txt
View
3 CMakeLists.txt
@@ -8,6 +8,7 @@ find_package (PETSc REQUIRED)
find_package (ITAPS COMPONENTS MESH GEOM REL)
find_package (GDAL)
find_package (HDF5)
+find_library (MATH_LIB m)
if (ITAPS_REL_FOUND)
set (dHAVE_ITAPS_REL TRUE)
endif ()
@@ -90,7 +91,7 @@ if (dHAVE_ITAPS_GEOM)
list (APPEND Dohp_ITAPS_LIBRARIES "${ITAPS_GEOM_LIBRARIES}")
endif ()
list (APPEND Dohp_ITAPS_LIBRARIES "${ITAPS_MESH_LIBRARIES}")
-set (Dohp_DEPENDENT_LIBRARIES "${Dohp_ITAPS_LIBRARIES}" "${PETSC_LIBRARIES}" "${HDF5_LIBRARIES}")
+set (Dohp_DEPENDENT_LIBRARIES "${Dohp_ITAPS_LIBRARIES}" "${PETSC_LIBRARIES}" "${HDF5_LIBRARIES}" "${MATH_LIB}")
set (Dohp_LIBRARIES dohp ${Dohp_DEPENDENT_LIBRARIES})
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${Dohp_BINARY_DIR}/lib CACHE PATH "Output directory for Dohp archives")

0 comments on commit e133f22

Please sign in to comment.