Re: [CMake] How to use different assemblers in single build?

2012-05-12 Thread Alexander Neundorf
On Saturday 12 May 2012, Alexey Istomin wrote: > >> Thanks a lot, Alex. > >> I done some experiments. It looks like dsp-asm sources should have a > >> different file extension? Can CMake select specific asm-compiler depends > >> on subdir instead of file extesion? > > > > Not per directory, but pe

Re: [CMake] How to use different assemblers in single build?

2012-05-12 Thread Alexey Istomin
>> Thanks a lot, Alex. >> I done some experiments. It looks like dsp-asm sources should have a >> different file extension? Can CMake select specific asm-compiler depends >> on subdir instead of file extesion? > > Not per directory, but per file. > You can use set_source_files_properties(... LANGU

Re: [CMake] CheckSymbolExists fails with multiple header files

2012-05-12 Thread Leif Walsh
M_MMAP_THRESHOLD is #defined in malloc.h, there are no #ifdefs around it. You include that header, you get the symbol, no matter what. Sent from my iPhone On May 12, 2012, at 5:27, Andreas Mohr wrote: > Hi, > > On Fri, May 11, 2012 at 03:41:59PM -0400, cmake-requ...@cmake.org wrote: >> Date:

Re: [CMake] CheckSymbolExists fails with multiple header files

2012-05-12 Thread Andreas Mohr
Hi, On Fri, May 11, 2012 at 03:41:59PM -0400, cmake-requ...@cmake.org wrote: > Date: Fri, 11 May 2012 13:32:55 -0400 > From: Leif Walsh > > I want to check whether M_MMAP_THRESHOLD is defined in either malloc.h or > sys/malloc.h, and whether CLOCK_REALTIME is defined in either time.h or > sys/

Re: [CMake] How to use different assemblers in single build?

2012-05-12 Thread Alexander Neundorf
On Saturday 12 May 2012, Alexey Istomin wrote: > > Yes. > > You need to duse two different assembler "dialects", each "dialect" > > counts as a separate language to cmake, so you can have many in > > parallel. So you should add e.g. a ASM-DSP dialect, and set the language > > of the source files to

Re: [CMake] How to use different assemblers in single build?

2012-05-12 Thread Alexey Istomin
> Yes. > You need to duse two different assembler "dialects", each "dialect" counts as > a separate language to cmake, so you can have many in parallel. > So you should add e.g. a ASM-DSP dialect, and set the language of the source > files to ASM-DSP. > This this assembler will be invoked on thes