Re: [CMake] Question about a simple macro.

2019-06-08 Thread Steven Truppe
OK, i don't realy understand why it does work but i got it working: include(CMakePrintHelpers) macro(bsMergeFlags flags_to_add flags)     set(flags_to_add ${flags_to_add} ${ARGN} )     cmake_print_variables(flags_to_add)     message(STATUS "bsMergeFlags ${flags_to_add}")     list(APPEND flags ${

Re: [CMake] Question about a simple macro.

2019-06-08 Thread Steven Truppe
ARGV1 gives me the first list entry of my first arguments, but i don't know how i can access the hole list. best regards! On 09.06.19 07:20, Steven Truppe wrote: Do i need cmake_parse_arguments ?? On 09.06.19 07:01, Steven Truppe wrote: Hi everyone, i'm a c,c++,asm and a few other languages

Re: [CMake] Question about a simple macro.

2019-06-08 Thread Steven Truppe
Do i need cmake_parse_arguments ?? On 09.06.19 07:01, Steven Truppe wrote: Hi everyone, i'm a c,c++,asm and a few other languages, but i still have troubles with macros and their arguments. As a simple example i would like to have a macro that list(APPEND the two passed arguments), here the co

[CMake] Question about a simple macro.

2019-06-08 Thread Steven Truppe
Hi everyone, i'm a c,c++,asm and a few other languages, but i still have troubles with macros and their arguments. As a simple example i would like to have a macro that list(APPEND the two passed arguments), here the code i tried: https://wandbox.org/permlink/WQZGty9PQaOz3422. Let's forget ab

Re: [CMake] Question about getting git branch name.

2019-06-08 Thread J Decker
On Sat, Jun 8, 2019 at 3:25 PM Steven Truppe wrote: > Hi everyone, > > i want to have code lines like: > > #define BUILD_VERSION > > and the BUILD_VERSION should be the name of the actual branch the code > was compiled with, this way i can create a branch for each version and > name it like 0.1 s

[CMake] Question about getting git branch name.

2019-06-08 Thread Steven Truppe
Hi everyone, i want to have code lines like: #define BUILD_VERSION and the BUILD_VERSION should be the name of the actual branch the code was compiled with, this way i can create a branch for each version and name it like 0.1 so each version i'm using for release is an own branch. I found many

[CMake] Question about config_file.

2019-06-08 Thread Steven Truppe
Hi everyone, currently i'm trying to build my doxygen documentation from my CMakeLists.txt file. I found the following example that seems to be correct: ## ## bsBuildDoxygen() ## ## macro(bsBuildDocs) if(GENERATE_DOCS) # check if Do

[CMake] Trouble with running cmake on MinGW

2019-06-08 Thread vinay kumar Kotegowder
Hi Everyone, I am trying to run cmake project on MinGW. I get the below error: [ 91%] Linking C executable test_m001.secure.elf.exe c:/progra~2/gnutoo~1/72018-~1/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: unrecognized option '--major-image-version' c:/progra~2/gnutoo~

Re: [CMake] Troubles with ExternalProject_Add.

2019-06-08 Thread Steven Truppe
Found the error, thank you anyway  -  you guys are allways a good way to get help about cmake, i'm starting to understand cmake slowly but it's getting easier and easier, cmake is a great build system. best regards! On 08.06.19 14:47, Steven Truppe wrote: Hi everyone, I've troubles with Exte

[CMake] Troubles with ExternalProject_Add.

2019-06-08 Thread Steven Truppe
Hi everyone, I've troubles with ExternalProject_Add: when i do build the library  manualy (clone the repo and build it with mkdir build;cd build; cmake -DCMAKE_BUILD_TYPE:String=Release -DGLAD_INSTALL=ON -DCMAKE_INSTALL_PREFIX=/home/stuv/glad_examples) it does work and i've the installation at /