[CMake] Linking to a library: libfoo.so vs libfoo.so.1.2

Bill Hoffman bill.hoffman at kitware.com
Mon May 19 09:11:51 EDT 2008


Mathieu Malaterre wrote:

> Could you please describe *exactly* what you did before posting, so
> that I can reproduce, I cannot achieve what you declare (cmake 2.4)
> 
> Linking C executable testuuid
> /usr/bin/cmake -P CMakeFiles/testuuid.dir/cmake_clean_target.cmake
> /usr/bin/gcc  -Wall -W   -fPIC "CMakeFiles/testuuid.dir/testuuid.o"
> -o testuuid -rdynamic -L/lib -luuid -Wl,-rpath,/lib
> /usr/bin/ld: cannot find -luuid
> 
> 
> AFAIK, full path is *not* supported (at least not in cmake 2.4)
> 
2.6 supports full paths.  There is not a way to do this in 2.4.

-Bill



More information about the CMake mailing list