On 02.07.2014 18:53, Eric LaFranchi wrote:

Currently we have 16 different platform that we target that are a combination of native compiles and cross compiles. I am adding a new platform to our build system using CMake's cross compiling facility. This platform is unique in that compiling a ".c" file to get an ".o" file required two steps. These steps: compile the source ".c" to generate a ".asm" file, then assemble that file to get the ".o" file.

For other cross compiled platforms I use CMAKE_FORCE_C_COMPILER, however I am not able to specify both the C compiler and assembler using this macro (my understanding is one compiler as the first argument). I have thought about using ADD_CUSTOM_COMMAND, however I don't want to write a custom command for several thousand C source files.

New ideas are greatly appreciated.


Could the compiler be a script that calls the actual compiler + assembler?

Nils
-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to