[CMake] different assemblers in single build?

Yuri Timenkov yuri at timenkov.ru
Tue May 22 13:11:41 EDT 2012


Hi,

You should have either 2 build trees or use custom commands.
If you have a lot of files you should go first way.
To ease development you may compile other tree using external project.
Unfortunately external project is not rebuilt if its sources changed. You
have to do it manually.

On Fri, May 11, 2012 at 8:12 PM, Alexey Istomin <strowil at yandex.ru> wrote:

> Hi all,
>
> Is it possible to use different assemblers in single build with CMake?
>
> I try to use CMake for building embedded application - statically linked
> elf file.
> Main CPU has 2 cores: general-purpose MIPS based core and DSP. Project has
> simple structure: main dir contains asm and C sources for Mips core,
> dsp-lib subdir has only asm sources for DSP core:
>
> main/
>    crt0-mips.s
>    main.c
>    ...
>    dsp-lib/
>        fft.s
>        ....
>
> GCC compiler and assembler are used for Mips sources, special assembler
> (dspasm) based on gnu should be used for DSP. Main should be linked with
> dsp lib into single elf file.
> I can successfully build main app without dsp-lib. But when I try to add
> dsp-lib subdir and set dspadm as assembler, CMake still uses mips-asm in
> the dsp-lib. Is it any solution?
>
> Thanks a lot
> Alex
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120522/9aa808c6/attachment.htm>


More information about the CMake mailing list