[CMake] How to use custom linker, e.g. lld on windows

2019-10-07 Thread Ryan Edward McClue via CMake
To avoid repetition, please view: https://stackoverflow.com/questions/58253100/how-to-use-lld-with-cmake-on-windows Sent with [ProtonMail](https://protonmail.com) Secure Email.-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMa

[CMake] LastTest log file name?

2019-10-07 Thread Donald MacQueen [|] via CMake
Ctest creates a log file in ../build/Testing/Temporary with a name like LastTest_MMDD_HHMM. Is there a way I an add some descriptions to this name? For example, LastTest_MMDD_HHMM_MyTestDescription. Thanks in advance. -- Donald [|] A bad day in [] is better than a good day in {}. --

Re: [CMake] HOWTO declare component inter-dependencies in multi-component packages

2019-10-07 Thread stefan
Hi, can you reproduce my observations ? I'm I doing something wrong or is there indeed an issue with CMake ? Should I follow up with a bug report ? Thanks, On 2019-10-04 2:20 p.m., stefan wrote: On 2019-10-03 5:24 p.m., Kyle Edwards wrote: On Thu, 2019-10-03 at 17:08 -0400, stefan wrote:

Re: [CMake] ?==?utf-8?q? Looking for an explanation: What exactly means "install" in cmake language?

2019-10-07 Thread Cornelis Bockemühl
> I think that the word install is used consistently between GNU autotools and > CMake: Right, looks like it comes from the "good old times" when on Linux computers software was "installed" by downloading, then doing a "make" and a "make install" in order to get it running, while nowadays "ins

Re: [CMake] Looking for an explanation: What exactly means "install" in cmake language?

2019-10-07 Thread Fred Baksik
On Mon, Oct 7, 2019, at 11:25 AM, Eric Noulard wrote: > > > Le lun. 7 oct. 2019 à 16:49, Cornelis Bockemühl a > écrit : >> Thanks to both you and J Decker: I would say that this is still the part >> that I understood! So basically the word "install" in cmake language could >> be replaced by

Re: [CMake] ?==?utf-8?q? Looking for an explanation: What exactly means "install" in cmake language?

2019-10-07 Thread Cornelis Bockemühl
>Le lun. 7 oct. 2019 à 16:49, Cornelis Bockemühl a >écrit : > >> Thanks to both you and J Decker: I would say that this is still the part >> that I understood! So basically the word "install" in cmake language could >> be replaced by "copy" more or less in common human language - right? > >Nope

Re: [CMake] Looking for an explanation: What exactly means "install" in cmake language?

2019-10-07 Thread Eric Noulard
Le lun. 7 oct. 2019 à 16:49, Cornelis Bockemühl a écrit : > Thanks to both you and J Decker: I would say that this is still the part > that I understood! So basically the word "install" in cmake language could > be replaced by "copy" more or less in common human language - right? > Nope I oversi

Re: [CMake] ?==?utf-8?q? Looking for an explanation: What exactly means "install" in cmake language?

2019-10-07 Thread J Decker
A note - INSTALL( FILES ) is only good for data files, if you have scripts that have executable permissions using INSTALL( PROGRAMS ) will get execute flag set too. On Mon, Oct 7, 2019 at 7:49 AM Cornelis Bockemühl wrote: > Thanks to both you and J Decker: I would say that this is still the part

Re: [CMake] Adding CRC32 to ELF

2019-10-07 Thread Vincent van Beveren
Hi Eric, Thanks for your prompt reply. I have been able to follow your steps up until the item, so thanks!  COMMAND ${CMAKE_C_COMPILER} $ --symbol $.crc32  $ I ran into two challenges: - The argument '$.crc32' should be the actual content of the file, and not the file itself, i.e. the calcu

Re: [CMake] ?==?utf-8?q? Looking for an explanation: What exactly means "install" in cmake language?

2019-10-07 Thread Cornelis Bockemühl
Thanks to both you and J Decker: I would say that this is still the part that I understood! So basically the word "install" in cmake language could be replaced by "copy" more or less in common human language - right? But then, if it is about "installing" a "target", which is libraries in my ca

Re: [CMake] Looking for an explanation: What exactly means "install" in cmake language?

2019-10-07 Thread Eric Noulard
I'll try some answer. In order to illustrate my words have a look at this figure: https://raw.githubusercontent.com/dev-cafe/cmake-cookbook/master/figures/cmake-times/cmake-times.jpg 1) When cmake "runs" (both cmake and generation times) you get your build tree configured and populated 2) At build

Re: [CMake] Looking for an explanation: What exactly means "install" in cmake language?

2019-10-07 Thread J Decker
Install steps are done with `cmake --build . --target install` (or --target INSTALL on some generators) It's done after the build is complete, if the build step fails, it will not install. (Install depends on build automatically) The install steps can also be used by --target package - which you

Re: [CMake] Adding CRC32 to ELF

2019-10-07 Thread Eric Noulard
Le lun. 7 oct. 2019 à 14:41, Vincent van Beveren a écrit : > Hello everyone, > > I'm setting up a new build targeting an embedded platform (LM32) and > trying to integrate a CRC32 into the resulting ELF. I have previously > done this using plain Makefiles with the following steps (pseudo code): >

[CMake] Looking for an explanation: What exactly means "install" in cmake language?

2019-10-07 Thread Cornelis Bockemühl
Constantly I am stumbling over the word "install" in the context of cmake scripts - while it is pretty clear that the word cannot mean what nowadays people would understand by that term! But even reading the docs forwards and backwards, studying examples and some generic cmake tutorials I still

[CMake] Adding CRC32 to ELF

2019-10-07 Thread Vincent van Beveren
Hello everyone, I'm setting up a new build targeting an embedded platform (LM32) and trying to integrate a CRC32 into the resulting ELF. I have previously done this using plain Makefiles with the following steps (pseudo code): target.elf:    link --symbol CRC_VALUE=0 intermediate.elf    obj

Re: [CMake] DEPENDS parameter of add_custom_target

2019-10-07 Thread Craig Scott
On Mon, Oct 7, 2019 at 11:21 PM Setzer Sebastian (CM-CI2/ECS2) < sebastian.set...@de.bosch.com> wrote: > Hi Craig, > > On Mon, 7. Oct 2019 12:56 Craig Scott wrote: > > As it happens, I just updated the docs for these in the last day or so. > > You mean you updated the docs of the two commands, but

Re: [CMake] DEPENDS parameter of add_custom_target

2019-10-07 Thread Setzer Sebastian (CM-CI2/ECS2) via CMake
Hi Craig, On Mon, 7. Oct 2019 12:56 Craig Scott wrote: > As it happens, I just updated the docs for these in the last day or so. You mean you updated the docs of the two commands, but you did not update the docs of the DEPENDS parameter, right? > There is a difference between the two, but it's

Re: [CMake] DEPENDS parameter of add_custom_target

2019-10-07 Thread Fred Baksik
On Mon, Oct 7, 2019, at 6:55 AM, Craig Scott wrote: > > > On Mon, Oct 7, 2019 at 9:32 PM Setzer Sebastian (CM-CI2/ECS2) via CMake > wrote: >> Dear list, >> The manual says: >> https://cmake.org/cmake/help/latest/command/add_custom_target.html >> Reference files and outputs of custom command

Re: [CMake] DEPENDS parameter of add_custom_target

2019-10-07 Thread Craig Scott
On Mon, Oct 7, 2019 at 9:32 PM Setzer Sebastian (CM-CI2/ECS2) via CMake < cmake@cmake.org> wrote: > Dear list, > The manual says: > https://cmake.org/cmake/help/latest/command/add_custom_target.html > Reference files and outputs of custom commands created with > add_custom_command() command calls

[CMake] DEPENDS parameter of add_custom_target

2019-10-07 Thread Setzer Sebastian (CM-CI2/ECS2) via CMake
Dear list, The manual says: https://cmake.org/cmake/help/latest/command/add_custom_target.html Reference files and outputs of custom commands created with add_custom_command() command calls in the same directory (CMakeLists.txt file). They will be brought up to date when the target is built. Use

[CMake] CMP0093 behaviour

2019-10-07 Thread James Turner via CMake
Hello, I’m experiencing an odd problem where no matter how I set CMP0093, it seems to use the ‘NEW’ behaviour, breaking some other code relying on the OLD behaviour. This is Cmake 3.15.4 from Homebrew, other people do report on other platforms do report the policy working for them. Here’s my co