Alex,

I'm trying to conditionally enable ASM support for my compilers that
support it (I have a project that gets crosscompiled to a whole slew
of architectures).

In an ideal situation, I would use
ENABLE_LANGUAGE(ASM OPTIONAL) and check the flag if it works or not.

For a few of the compilers, I get the same issue as Florian where the
whole project generation fails (because cmake couldn't figure out the
assembler type :/). Is there any way to tell cmake what 'type' it is?
Also, can it be changed to just report asm support as false if it
can't detect the assembler type?

/Johan


On Fri, Jul 22, 2011 at 10:00 PM, Alexander Neundorf
<a.neundorf-w...@gmx.net> wrote:
> On Thursday 21 July 2011, Florian Reinhard wrote:
>> Hi Alex,
>>
>> Thank you for the quick response,
>>
>> 2011/7/20 Alexander Neundorf <a.neundorf-w...@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
> _______________________________________________
> 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
>
_______________________________________________
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

Reply via email to