[CMake] Output assembly (g++ -S)

Tim Gallagher tim.gallagher at gatech.edu
Thu Oct 18 22:30:06 EDT 2012


Interestingly it only does this for C/C++ but does not do it for Fortran source files (at least in my project when I just tested it) even though -S is a valid option for Intel and GNU Fortran compilers.

Any possibility that could be corrected?

Tim

----- Original Message -----
From: "Bill Hoffman" <bill.hoffman at kitware.com>
To: cmake at cmake.org
Sent: Thursday, October 18, 2012 10:20:58 PM
Subject: Re: [CMake] Output assembly (g++ -S)

On 10/18/2012 9:47 PM, David Doria wrote:
> I am trying to produce the .s file that "g++ -S file.cpp" would
> produce, but on a CMake target (because I want the include path that
> I've setup through CMake, etc.)
>
> Consider a simple demo:
>
> PROJECT(Assembly)
> ADD_EXECUTABLE(Assembly Assembly.cpp ) # this produces an 'Assembly' executable

CMake has targets to do that.  If you type make help you can see them. 
It should be something like this:

make Assembly.s

-Bill

--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list