[CMake] specifying "Additional Library Directories"

Bill Hoffman bill.hoffman at kitware.com
Thu May 15 14:47:17 EDT 2008


Phil Pellouchoud wrote:

>  
> 
> I cannot seem to get cmake to put in additional library directories.
> 
>  
> 
> I have tried using SET(CMAKE_LIBRARY_PATH “path_to_libraries”) and 
> LINK_DIRECTORIES(“path_to_libraries”) and neither seem to fill in that 
> entry in the link tab.
> 
>  

LINK_DIRECTORIES should work, you just have to make sure it comes BEFORE 
the target.

-Bill


More information about the CMake mailing list