[CMake] long library names

James Bigler bigler at cs.utah.edu
Wed Aug 15 14:42:52 EDT 2007


When I run FIND_LIBRARY(MYLIB mylib), the value of MYLIB is the full  
path to mylib (i.e. /home/bigler/lib/libmylib.a).  When I go to link  
the executable it breaks it up into -L/home/bigler/lib -lmylib.

Is there a way to get CMake to put /home/bigler/lib/libmylib.a on the  
link line instead of breaking it up into path/short name?

Thanks,
James


More information about the CMake mailing list