Fix link order of CHOLMOD

This was working by accident due to dynamic linking. Fixes issue #2.
This commit is contained in:
Keir Mierle
2012-05-01 18:22:51 -07:00
parent f477a38353
commit df3e54eb4a
+8 -9
View File
@@ -103,16 +103,15 @@ ADD_LIBRARY(ceres
${CERES_INTERNAL_HDRS}
${CERES_INTERNAL_SCHUR_FILES})
# TODO(keir): Make linking gomp optional for e.g. Windows.
SET(CERES_LIBRARY_DEPENDENCIES
${GLOG_LIB}
${GFLAGS_LIB}
${LAPACK_LIB}
${CAMD_LIB}
${AMD_LIB}
${CCOLAMD_LIB}
${COLAMD_LIB}
${CHOLMOD_LIB})
${GLOG_LIB}
${GFLAGS_LIB}
${CHOLMOD_LIB}
${LAPACK_LIB}
${CAMD_LIB}
${AMD_LIB}
${CCOLAMD_LIB}
${COLAMD_LIB})
IF (EXISTS ${METIS_LIB})
SET(CERES_LIBRARY_DEPENDENCIES