[CMake] Assembler handling in 2.8.5 vs 2.8.4
Alexander Neundorf
a.neundorf-work at gmx.net
Fri Jul 22 16:00:00 EDT 2011
On Thursday 21 July 2011, Florian Reinhard wrote:
> Hi Alex,
>
> Thank you for the quick response,
>
> 2011/7/20 Alexander Neundorf <a.neundorf-work at gmx.net>:
> > Damn, I was so sure I updated the wiki, but apparently I didn't.
> > So here are the old docs, but this changed quite a bit for 2.8.5:
> > http://www.vtk.org/Wiki/CMake/Assembler
> >
> > What it does now:
> > the language "ASM" is now for assembler files which can be processed by
> > your C compiler. This actually seems to be the case for you.
> > Is the compiler ID of your compiler recognized by cmake ?
>
> I guess not, since i define the compiler and how it is being called my
> self there is/was no need to have cmake detect the compiler ID.
>
> > It seems like it isn't.
> > If it was, the assembler support would not try to figure out the
> > "compiler ID" for the assembler again, it would just use the compiler ID
> > from C or CXX.
> >
> > Can you please post the complete cmake output from some basic C project ?
>
> Sure, hope to get this done by Friday afternoon CEST.
>
> > Basically, what we should do, add support for your compiler toolchain,
> > i.e. add support for recognizing your compiler, and create files in
> > Modules/Compiler/TMS-C|CXX|ASM.cmake.
>
> Having cl6x support included in CMake would be really nice, besides
> that knowing how to setup a toolchain easily would be good either ;)
>
> > This doesn't require recompiling cmake, it is all in the modules files.
> > Then it should all work much better.
> >
> > How do you compiler settings, toolchain file etc. look right now ?
>
> I attached three files:
> help-<command>.txt
> The Texas Instruments "<command> --help" output
> CMakeLists_root.txt
> Thats where i setup the toolchain and define the project
> CMakeLists_src.txt
> Thats where i add sources and binaries
>
> The cl6x toolchain is available for linux and windows after registration
> at:
> https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.
> htm
Can you build cmake from this branch I just created ?
http://cmake.org/gitweb?p=stage/cmake.git;a=shortlog;h=refs/heads/TI_DSP_Compiler
It has basic support for the TI compiler, see the files
Modules/Compiler/TI_DSP-*.cmake.
At least I was able to compile and link C, C++ and an assembler file.
It should also work to copy these three files simply in the Modules/Compiler/
directory of your installed cmake, but you need at least CMake 2.8.4.
I'm quite sure these files are not complete.
Please give them a try and I'd be happy about patches to make them really
work.
Alex
More information about the CMake
mailing list