Re: [CMake] add_custom_command using CMAKE_CXX_FLAGS

2009-09-07 Thread John Smith
On Sep 5, 2009, at 3:31 PM, Alexander Neundorf wrote: [...] Can you please try the attached patch ? I have tried it and I have got the desired result, i.e. the compiler driver is invoked for compilation on the assembly sources. The CMakeLists.txt file contains: ENABLE_LANGUAGE(ASM-GCC) se

Re: [CMake] add_custom_command using CMAKE_CXX_FLAGS

2009-09-05 Thread John Smith
Alexander Neundorf wrote: On Monday 24 August 2009, John Smith wrote: [...] I have tried doing that. [...] So you have also hit that bug ? http://public.kitware.com/Bug/view.php?id=8392 Interesting, did not know of it. IMHO, I believe that the C compiler (or C compiler driver) should be

Re: [CMake] CHECK_CXX_SOURCE_COMPILES attempts linking

2009-09-05 Thread John Smith
Alexander Neundorf wrote: On Thursday 03 September 2009, John Smith wrote: It seems that CHECK_CXX_SOURCE_COMPILES attempts to link the object files into an executable: Yes. Sometimes having it only compile but not link would be nice, but that's not the case. So, this is not by d

[CMake] CHECK_CXX_SOURCE_COMPILES attempts linking

2009-09-02 Thread John Smith
It seems that CHECK_CXX_SOURCE_COMPILES attempts to link the object files into an executable: [...] Performing C++ SOURCE FILE Test failed with the following output: Change Dir: /my-proj/builddir/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast" [...] gmake[1]: Enterin

Re: [CMake] add_custom_command using CMAKE_CXX_FLAGS

2009-08-26 Thread John Smith
On Aug 25, 2009, at 11:26 AM, Tyler Roscoe wrote: Michael and Marcel have already posted helpful follow-ups to the original question about compiling assembler files. The replies have been very helpful indeed, thanks! -J ___ Powered by www.kitware.

Re: [CMake] add_custom_command using CMAKE_CXX_FLAGS

2009-08-24 Thread John Smith
On Aug 24, 2009, at 12:48 PM, Tyler Roscoe wrote: On Sun, Aug 23, 2009 at 09:03:22PM -0400, John Smith wrote: I am using the following test case in an attempt to add a custom command to build an assembly file. The assembly file should be compiled with the C++ compiler driver (which in turn

[CMake] add_custom_command using CMAKE_CXX_FLAGS

2009-08-23 Thread John Smith
Hi, I have browsed the list for a while trying to figure this but with little success and my own testing is yielding confusing results. I am using the following test case in an attempt to add a custom command to build an assembly file. The assembly file should be compiled with the C++ com