[CMake] Re: heads up on convenience lib ? and a problem on source files with similar names...

Bill Hoffman bill.hoffman at kitware.com
Wed May 9 08:18:39 EDT 2007


Asmodehn Shade wrote:
>
> PROJECT ( target CXX )
>
> When forcing the link language :
>
> SET_TARGET_PROPERTIES(${project_name} PROPERTIES LINKER_LANGUAGE CXX)
>
> I can see in my source that some of my .cc file became .c ...
> Well it my be an error on my side, How ever I wonder how cmake works when mixing C and C++ code. Is there a doc about that somewhere ?
>
> Most of my problem comes from that I think, as I am trying to mix convenience lib C code and C++ target code.
>
> So I wonder what s the best option for me right now... wait for convenience lib support in cmake ;) ? rewrite my C code in C++ look-alike files ? keep looking for bugs in my macros ?
> I have a sample of my hierarchy to test my macros if someone is interested, probably a bit too big to put it right here...
>
> Thanks for any hints,
>   
Can you give a full example of something that is not working?  .cc 
should automatically be c++, and .c should automatically be C.  

-Bill



More information about the CMake mailing list