cmake and asm?
Alexander Neundorf
neundorf at kde.org
Sat Jan 20 19:08:14 CET 2007
Hi Andre,
On Saturday 20 January 2007 18:40, André Wöbbeking wrote:
> On Saturday 20 January 2007, Alexander Neundorf wrote:
...
> > add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o
> > COMMAND as ...
> > ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S -o
> > ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o DEPENDS
> > ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S )
>
> Two questions:
> 1) is the absolute path ${CMAKE_CURRENT_SOURCE_DIR}/ really needed
For the "DEPENDS" not really. For the call to "as" yes, otherwise
out-of-source won't work. You can also wrap it into a macro which uses
get_filename_component(... ABSOLUTE).
> 2) is "as" portable?
Hmm, depends. I guess it's as portable as the assembler file.
Bye
Alex
--
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org - http://www.kde.org
alex AT neundorf.net - http://www.neundorf.net
More information about the Kde-buildsystem
mailing list