Re: [CMake] How to pass -D options when compiling assembly files using gcc?

2009-08-10 Thread Marcel Loose
On Fri, 2009-07-24 at 22:16 +0200, Alexander Neundorf wrote: > On Monday 13 July 2009, Michael Wild wrote: > > On 13. Jul, 2009, at 10:28, Eric Noulard wrote: > > > 2009/7/12 Marcel Loose : > > >> Hi Eric, > > >> > > >> Thanks, I'll try that tomorrow. Another option that occurred to me > > >> today

Re: [CMake] How to pass -D options when compiling assembly files using gcc?

2009-07-24 Thread Alexander Neundorf
On Monday 13 July 2009, Michael Wild wrote: > On 13. Jul, 2009, at 10:28, Eric Noulard wrote: > > 2009/7/12 Marcel Loose : > >> Hi Eric, > >> > >> Thanks, I'll try that tomorrow. Another option that occurred to me > >> today > >> is that, since I'm using gcc to preprocess and compile the assembly >

Re: [CMake] How to pass -D options when compiling assembly files using gcc?

2009-07-13 Thread Michael Wild
On 13. Jul, 2009, at 10:28, Eric Noulard wrote: 2009/7/12 Marcel Loose : Hi Eric, Thanks, I'll try that tomorrow. Another option that occurred to me today is that, since I'm using gcc to preprocess and compile the assembly sources, I might add .S as source file extension to CMAKE_C_SOUR

Re: [CMake] How to pass -D options when compiling assembly files using gcc?

2009-07-13 Thread Eric Noulard
2009/7/12 Marcel Loose : >> > Hi Eric, > > Thanks, I'll try that tomorrow. Another option that occurred to me today > is that, since I'm using gcc to preprocess and compile the assembly > sources, I might add .S as source file extension to > CMAKE_C_SOURCE_FILE_EXTENSIONS. Any idea if that might w

Re: [CMake] How to pass -D options when compiling assembly files using gcc?

2009-07-12 Thread Marcel Loose
On Sun, 2009-07-12 at 00:09 +0200, Eric Noulard wrote: > 2009/7/11 Marcel Loose : > > Hi Bill, > > > > The problem is not in the invocation of gcc. That works fine. The > > problem is that I lose the preprocessor definitions that were added with > > add_definitions() when compiling assembly files.

Re: [CMake] How to pass -D options when compiling assembly files using gcc?

2009-07-11 Thread Eric Noulard
2009/7/11 Marcel Loose : > Hi Bill, > > The problem is not in the invocation of gcc. That works fine. The > problem is that I lose the preprocessor definitions that were added with > add_definitions() when compiling assembly files. These assembly files > must be preprocessed by gcc. I have the feel

Re: [CMake] How to pass -D options when compiling assembly files using gcc?

2009-07-11 Thread Marcel Loose
Hi Bill, The problem is not in the invocation of gcc. That works fine. The problem is that I lose the preprocessor definitions that were added with add_definitions() when compiling assembly files. These assembly files must be preprocessed by gcc. I have the feeling that CMake purposely drops these

Re: [CMake] How to pass -D options when compiling assembly files using gcc?

2009-07-10 Thread Bill Lorensen
gcc has a command line option: -Xassembler Pass on to the assembler Will this help? Bill On Fri, Jul 10, 2009 at 10:41 AM, Marcel Loose wrote: > Hi all, > > I'm trying to build a library that has, amongst a number of C/C++ > sources, a number of assembly files as input. These are .S fi

[CMake] How to pass -D options when compiling assembly files using gcc?

2009-07-10 Thread Marcel Loose
Hi all, I'm trying to build a library that has, amongst a number of C/C++ sources, a number of assembly files as input. These are .S files which need to be cross-compiled for BG/P by gcc, not by as (or gas) directly. I have defined a number of preprocessor definitions (-D options) using add_defi