On Wednesday 13 October 2010, Martin Nielsen wrote:
> Hi
>
>
>
> I new to CMake and trying to create a build system that uses a custom
> toolchain. So far I managed to get most of it working but have a small
> problem with some assembling.
>
> I have added this code to the toolchain file:
>
>
>
> find_program(CMAKE_ASM_COMPILER NAMES armasm PATHS
> ${CSR_SYNERGY_ARM_PATH_BIN})
>
> set (ARM_PROCESSOR "--cpu ARM1176JZ-S --fpu SoftVFP+VFPv2")
>
> set (CMAKE_ASM_FLAGS_INIT "--predefine \"BDB SETA 2\"")
>
> set (CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> -g --keep
> ${ARM_PROCESSOR} --apcs /interwork --no_unaligned_access <FLAGS> -o
> <OBJECT> <SOURCE>")
>
>
>
> The problem is the <FLAGS> parameter inserts all the include directories
> as "DIR1" "DIR2" and not -I"DIR1" -I"DIR2". Does there exists some rule
> that defines how include directories are turned into <FLAGS>?
>
Did you try the following ?
SET(CMAKE_INCLUDE_FLAG_ASM "-I")
Alex
_______________________________________________
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