On Thu, 31 Oct 2013 18:01:29 +0100 Alexander Neundorf <[email protected]> wrote:
> Did you try setting the source file property "LANGUAGE" to "ASM" for > these files ? > http://www.cmake.org/cmake/help/v2.8.12/cmake.html#prop_sf:LANGUAGE Thanks, that made the trick but I ran into another problem: One of those asm file is somehow being ignored by cmake. I can find the right commands greping in the build dir but they are not executed during make: ./SOFTWARE_FRAMEWORK/UTILS/STARTUP_FILES/GCC/CMakeFiles/crt0.dir/build.make: cd /home/ivan/Documents/avr/test/BuildTest/SOFTWARE_FRAMEWORK/UTILS/STARTUP_FILES/GCC && /home/ivan/Documents/avr/test/avr32-gnu-toolchain-linux_x86_64/bin/avr32-gcc $(ASM_DEFINES) $(ASM_FLAGS) -o CMakeFiles/crt0.dir/crt0.x.o -c /home/ivan/Documents/avr/test/src/SOFTWARE_FRAMEWORK/UTILS/STARTUP_FILES/GCC/crt0.x This time I suspect cmake missing a dependency because cmake can't understand asm. make ends with SOFTWARE_FRAMEWORK/ASM/libtrampoline.a(trampoline.s.o): In function `program_start': (.reset+0x2004): undefined reference to `_stext' _start is a address label in asm defined in the ctr0.x: .section .text._stext, "ax", @progbits .global _stext .type _stext, @function _stext: -- Ivan Sergio Borgonovo http://www.webthatworks.it -- 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://www.cmake.org/mailman/listinfo/cmake
