[Trilinos-Users] Space-separated TPLs link options
Alberto F. Martín-Huertas
amartin at cimne.upc.edu
Thu Jun 30 12:11:47 MDT 2011
Dear All,
I would like to know which CMake macros I have
to set (and how a I have to set them)
in order to link against TPLs in case of
space-separated link options, like the following ones:
#Setting defitions for MKL BLAS
BLAS_DIR="/opt/intel/Compiler/11.0/084/mkl"
BLAS_LIB="-L$BLAS_DIR/lib/em64t -lmkl_solver_lp64_sequential \
-Wl,--start-group -lmkl_intel_lp64 -lmkl_sequential
-lmkl_core -Wl,--end-group -lpthread"
Currently, I am using the following CMake macros without success
(in particular, only the first token of $BLAS_LIB is copied to the
CMakeCache variable TPL_BLAS_LIBRARIES:STRING):
-D TPL_ENABLE_BLAS:BOOL=ON \
-D TPL_BLAS_LIBRARIES:STRING=$BLAS_LIB \
-D TPL_ENABLE_LAPACK:BOOL=ON \
-D TPL_LAPACK_LIBRARIES:STRING=$BLAS_LIB \
Thanks in advance.
Best regards,
Alberto.
More information about the Trilinos-Users
mailing list