diff options
Diffstat (limited to 'math/ceres-solver/Makefile')
-rw-r--r-- | math/ceres-solver/Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/math/ceres-solver/Makefile b/math/ceres-solver/Makefile index 5c1500585a41..9c8909e64d17 100644 --- a/math/ceres-solver/Makefile +++ b/math/ceres-solver/Makefile @@ -23,7 +23,7 @@ USE_GITHUB= yes USE_LDCONFIG= yes SHEBANG_FILES= examples/slam/pose_graph_*/plot_results.py \ scripts/make_docs.py -CMAKE_ARGS= -DCXX11=on -DBUILD_SHARED_LIBS=on +CMAKE_ON= CXX11 BUILD_SHARED_LIBS LDFLAGS+= -Wl,--as-needed # -lccolamd -lcholmod -lrt from suitesparse PLIST_SUB= VERSION=${DISTVERSION:C/rc.*//} EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:S/-solver//} @@ -67,26 +67,27 @@ TEST_IMPLIES= GFLAGS LAPACK_DESC= Linear Algebra PACKage LAPACK_USES= fortran # LDFLAGS -LAPACK_CMAKE_ON= -DBLAS_LIBRARIES="${BLASLIB}" -DLAPACK_LIBRARIES="${LAPACKLIB}" +LAPACK_CMAKE_ON= -DBLAS_LIBRARIES:FILEPATH="${BLASLIB}" \ + -DLAPACK_LIBRARIES:FILEPATH="${LAPACKLIB}" LAPACK_CMAKE_BOOL= LAPACK ATLAS_USES= blaslapack:atlas -ATLAS_CMAKE_ON= -DBLA_VENDOR="ATLAS" +ATLAS_CMAKE_ON= -DBLA_VENDOR:STRING="ATLAS" ATLAS_IMPLIES= LAPACK GOTOBLAS_DESC= Goto blas implementation GOTOBLAS_USES= blaslapack:gotoblas -GOTOBLAS_CMAKE_ON= -DBLA_VENDOR="Goto" +GOTOBLAS_CMAKE_ON= -DBLA_VENDOR:STRING="Goto" GOTOBLAS_IMPLIES= LAPACK NETLIB_USES= blaslapack:netlib -NETLIB_CMAKE_ON= -DBLA_VENDOR="Generic" +NETLIB_CMAKE_ON= -DBLA_VENDOR:STRING="Generic" NETLIB_IMPLIES= LAPACK OPENBLAS_USES= blaslapack:openblas -OPENBLAS_CMAKE_ON= -DBLA_VENDOR="OpenBLAS" +OPENBLAS_CMAKE_ON= -DBLA_VENDOR:STRING="OpenBLAS" OPENBLAS_IMPLIES= LAPACK SPARSE_DESC= Sparse linear algebra library CXSPARSE_DESC= CXSparse support CXSPARSE_LIB_DEPENDS= libcxsparse.so:math/suitesparse -CXSPARSE_CMAKE_ON= -DCXSPARSE_INCLUDE_DIR="${LOCALBASE}/include/suitesparse" +CXSPARSE_CMAKE_ON= -DCXSPARSE_INCLUDE_DIR:PATH="${LOCALBASE}/include/suitesparse" CXSPARSE_CMAKE_BOOL= CXSPARSE EIGENSPARSE_DESC= Simplicial Cholesky factorization in Eigen EIGENSPARSE_CMAKE_BOOL= EIGENSPARSE |