Re: [CMake] link against a library under windows

2011-01-31 Thread Tyler Roscoe
On Mon, Jan 31, 2011 at 08:12:49AM +0100, ycollette.nos...@free.fr wrote: > if (MKL_FOUND) > set(LINK_PATHS ${LINK_PATHS} "${mkl_solver_PATH}") > endif (MKL_FOUND) > if (MPI_FOUND) > set(LINK_PATHS ${LINK_PATHS} "${MPI_BASE_PATH}/lib") > endif (MPI_FOUND) > > link_directories(${LINK_PATHS}) D

[CMake] link against a library under windows

2011-01-30 Thread ycollette . nospam
Hello, I would like to link against several .lib windows libraries. So, I set up the link paths via the following commands: if (MKL_FOUND) set(LINK_PATHS ${LINK_PATHS} "${mkl_solver_PATH}") endif (MKL_FOUND) if (MPI_FOUND) set(LINK_PATHS ${LINK_PATHS} "${MPI_BASE_PATH}/lib") endif (MPI_FOUND)