[cmake-developers] How to deal with assembler files

Brad King brad.king at kitware.com
Fri Mar 4 09:20:27 EST 2011


On 03/03/2011 05:04 PM, Alexander Neundorf wrote:
> On Thursday 03 March 2011, Brad King wrote:
>> Hi Alex,
>>
>> The Sun compiler still fails:
>> http://www.cdash.org/CDash/testDetails.php?test=85204365&build=888421
>>
>> It's because the execute_process in the CMakeLists.txt file of the test
>> does not use the C compiler flags.  Therefore 32-bit assembly code is
>> generated and then it tries to compile it with 64-bit flags.
> 
> Ok, merged into next, I hope it works.
> I disabled the assembler test for Intel under Windows for now.

I just added a few more fixes/changes to the topic.  The CMAKE_C_FLAGS
have to be parsed because they are space-separated.  We also now use a
custom command to generate main.s and enable verbose make output.  Now
the test should print out all the command lines in its output.

-Brad



More information about the cmake-developers mailing list