[CMake] gnu-arm-embedded toolchain and CMAKE_FORCE_C_COMPILER

2017-03-29 Thread Wagner Martin
Hi @all, In recent CMake versions I get a deprecated message for using the cmake_force_xxx_compiler() function inside my toolchain file. After searching, I found that there are two threads on the CMake list, one https://cmake.org/pipermail/cmake/2016-February/062773.html just ending without a

[CMake] import external library

2017-02-15 Thread Wagner Martin
Hi @all, I’ve tried importing an external library like that: stackoverflow.com/questions/31274577 I have the same use case, except that my custom target does not call make but does unpack a tar archive containing headers and .a. My problem is that the step “ # specify where the library is and

Re: [CMake] install() rename with version string -solved-

2017-01-20 Thread Wagner Martin
Thank you very much! This did the trick > > Well, the second install command has the wrong scope: > install(CODE "include(version.cmake)") > install(FILES firmware.hex > RENAME firmware_\${version_string}.hex > DESTINATION firmware) > I've tried that before, but without the

Re: [CMake] install() rename with version string

2017-01-20 Thread Wagner Martin
Thanks for your answers. > >You will need to do the install as another target/command. For > >example: > > > >add_custom_command( TARGET version > > POST_BUILD > > COMMAND ${CMAKE_COMMAND} -D >

Re: [CMake] install() rename with version string

2017-01-19 Thread Wagner Martin
An: Wagner Martin Cc: cmake@cmake.org Betreff: Re: [CMake] install() rename with version string You can try: include(version.cmake OPTIONAL) which will make include tolerate the absence of version.cmake, but then your install statement will only be OK after version.cmake has been created. 2017-01

[CMake] install() rename with version string

2017-01-19 Thread Wagner Martin
Hello, I’ve searched for some time, but didn’t find anything useful. Most finds deal with including version system stuff passed to header files for compilation. I want to achieve something like that: Include(version.cmake) install(FILES firmware.hex RENAME firmware_${version_string}.hex)

Re: [CMake] C header file cross dependency

2016-07-05 Thread Wagner Martin
Hi @all, I've finally found a solution to the problem. My solution is here: https://github.com/martinwag/test_cmake/tree/master What I did: - remove "OBJECT" library targets as they do not work in combination with interface libraries - added one install target per library, so I get one

Re: [CMake] C header file cross dependency

2016-06-23 Thread Wagner Martin
Hi Patrick, thank you for your answer and sorry that it took me a while to work on it. > > I forked your repo and played a little bit around. > > https://github.com/pboettch/test_cmake I pulled those changes and played aroud a bit myself. https://github.com/martinwag/test_cmake I'm now back

Re: [CMake] C header file cross dependency

2016-06-01 Thread Wagner Martin
> > Could you provide a working, stripped down example to show the problem > provided via github (in an example repo). > I've added a simple test project to https://github.com/martinwag/test_cmake/tree/master Note that this example does not need cross gcc for ARM. It doesn't implement any

Re: [CMake] C header file cross dependency

2016-05-31 Thread Wagner Martin
Thank you for your answer! > > How do I resolve something like this? Right now CMake evaluates the > > compiler includes in the order that subdirectories are added. This > > gives me an compilation error in uart.c that terminal.h cannot be > > found. > > This is not a cmake-problem, but seems to