Re: [CMake] Assembler and C++ for the same target

2008-10-02 Thread Alexander Neundorf
On Thursday 25 September 2008, Stefan Weber wrote: ... > Any ideas for a workaround? At this point, I'm desperate enough to accept > any hack... If the other hints don't help, can you please post a (ideally minimal) test case ? Alex Btw. did we meet in Prague this year or was it somebody else w

Re: [CMake] Assembler and C++ for the same target

2008-09-27 Thread Hendrik Sattler
Am Thursday 25 September 2008 19:42:34 schrieb Hendrik Sattler: > Am Thursday 25 September 2008 17:45:54 schrieb Stefan Weber: > > I am working on a C++ project which is using a single assembler file > > (among all the C++ files). In the mailinglist archives I found some hints > > on how to use the

Re: [CMake] Assembler and C++ for the same target

2008-09-26 Thread Matthew Woehlke
Stefan Weber wrote: set(${CMAKE_ASM_SOURCE_FILE_EXTENSIONS} "s;S") but this does not help. To debug this, I do the following on the next line message("${CMAKE_ASM_SOURCE_FILE_EXTENSIONS}") Strangly, this does not print anything, just an empty line. Why is that? Well, you didn't set CMAKE_ASM

Re: [CMake] Assembler and C++ for the same target

2008-09-25 Thread Hendrik Sattler
Am Thursday 25 September 2008 23:50:33 schrieb Stefan Weber: > I think I was not clear enough here: it is not working when I combine ASM > source files and CXX source files and as I found out by now, this is > probably not supported anways. (Mixing ASM and C++ source files would be > the ideal scen

Re: [CMake] Assembler and C++ for the same target

2008-09-25 Thread Stefan Weber
I just spotted yet another issue that might influence the solution: Note the capital S in the file extension of the ASM file. It seems this is crucial: when I rename to a small s and manually pass it to g++ it does not work anymore. When I leave the cap S, it works. Looking a bit deeper shows that

Re: [CMake] Assembler and C++ for the same target

2008-09-25 Thread Stefan Weber
> > Ideally, I would like to pass it to > > add_library with all the other source files (in the same way I can pass > it > > to C++ which automatically forwards it to the assembler). This is not > > working, > > Stop. The next step is no logical one. If it doesn't work for one target, > why > Shoul

Re: [CMake] Assembler and C++ for the same target

2008-09-25 Thread Hendrik Sattler
Am Thursday 25 September 2008 17:45:54 schrieb Stefan Weber: > I am working on a C++ project which is using a single assembler file (among > all the C++ files). In the mailinglist archives I found some hints on how > to use the experimental ASM mode. However, as I only have a single ASM > file, I'm

[CMake] Assembler and C++ for the same target

2008-09-25 Thread Stefan Weber
Hi, I am working on a C++ project which is using a single assembler file (among all the C++ files). In the mailinglist archives I found some hints on how to use the experimental ASM mode. However, as I only have a single ASM file, I'm not sure how to handle that: Ideally, I would like to pass it to