[CMake] custom compiler: remove space after CMAKE_LINK_LIBRARY_FILE_FLAG

Doug Crawford dcraw101 at yahoo.com
Fri Oct 21 00:06:50 EDT 2011


I am creating a platform file for the Radisys OS9 embedded cross compiler.  The executable link line needs to look like:
xcc source.o -fd=target -lmylib/mylib.l
 
I figured out that I needed to add this to my Generic_XCC.cmake platform file
SET(CMAKE_LINK_LIBRARY_FILE_FLAG "-l")
 
but the problem is that cmake generates a space after the -l directive
xcc source.o -fd=target -l mylib/mylib.l
 
Any ideas as to how I could remove that space after the -l?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111020/f086bdde/attachment-0001.htm>


More information about the CMake mailing list