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

2019-10-08 Thread cornelis
Thanks for that hint! But for me the RPATH stuff is only a supplement, because in the context of a Paraview based project, most of my shared libs are plugins, and for these PV comes with its own mechanism to find them. But then all the more important is the question about actually

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

2019-10-08 Thread Eric Noulard
Le mar. 8 oct. 2019 à 12:52, Cornelis Bockemühl a écrit : > One more finding: the "magic" that QtCreator does to start example also > without any additional fiddling with the RPATH: it already contains a > RUNPATH, and this points to the shared library libshlibbu.so in it's build > tree

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] 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

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

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

[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