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 so
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 w
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
firmware_>\<--
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
> >VERSION=${version_s
00
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.
20
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)
wher
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 "lib*.a
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
>
> 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 us
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
Hi @all,
I'm quite new to CMake. If I've made a mistake or something is much easier to
solve, please tell me.
I'd like to use CMake in embedded development (Build System: Linux, Target: ARM
Microcontroller) to get rid of complicated makefiles.
We're building multiple devices where stuff like e
11 matches
Mail list logo