[CMake] Suppress a specific path in the RPATH of an executable explicitly

2019-12-19 Thread Cornelis Bockemühl
this way the shared libs would be found in the executable directory first and any other "wrong" paths would not hurt. Many thanks and regards, Cornelis Bockemühl -- Powered by kitware.com/cmake Kitware offers various services to support the CMake community. For more information on each

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

2019-10-08 Thread Cornelis Bockemühl
After stripping down the question to "can I install an imported target"? - with the purpose to copy the shared libraries also into the lib directory of the importing project - I could actually also use Google and look for an answer that somebody else might have been asked. And indeed: this

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

2019-10-08 Thread Cornelis Bockemühl
Actually I implemented yesterday a way how to copy the shared libs - with configure_file() and a lot of frickling around with the lib names myself, like finding out the extension on Linux and Windows, etc. Now I tried to include the following command in the "shlibbiConfig.cmake.in" file:

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

2019-10-08 Thread Cornelis Bockemühl
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 location, not in the installed location - and the same with

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

2019-10-08 Thread Cornelis Bockemühl
The missing link to my "cmake teacher web page": https://pabloariasal.github.io/2018/02/19/its-time-to-do-cmake-right/ Regards, Cornelis -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various

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

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

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

[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

Re: [CMake] ?==?utf-8?q? ?==?utf-8?q? ?= Debug logging of item

2019-09-23 Thread Cornelis Bockemühl
it might be close enough. I'm not aware of any way to get a list of all defined properties on a given target though.  On Mon, Sep 23, 2019 at 12:47 AM Cornelis Bockemühl wrote: Hi Eric, Thanks for the hint regarding dumping variables: That's good to know! However, I was learning that working with C

Re: [CMake] ?==?utf-8?q? Debug logging of items

2019-09-22 Thread Cornelis Bockemühl
S) I use this to dump the variables into a file so I can see with which variable settings my build directory was configured with. With kind regards, EricAm 20.09.19 um 14:49 schrieb Cornelis Bockemühl: Right now I am fighting my way through large amounts of CMake code (actually working on a ParaVi

[CMake] Debug logging of items

2019-09-20 Thread Cornelis Bockemühl
er "feature requests"? In fact I can hardly believe that I am the first with such kind of dreams, so my hope is still that they already exist somewhere... -- Cornelis Bockemühl mail: corne...@bockemuehl.ch phone: +41 79 644 9943 Basel, Switzerland https://cobo.bockemuehl.ch -- Powe

Re: [CMake] conditions and included subprojects

2018-06-11 Thread Cornelis Bockemühl
>     2) Use an initial value for the option. Now, it is always > defined, there is no need to check for the source. It is the > responsibility of the user to set the option appropriately. > >   > > I think, the second version is the easiest way. > >   > >

[CMake] conditions and included subprojects

2018-06-11 Thread Cornelis Bockemühl
Dear CMake users, Maybe my question is trivial for most, but still I do not find an answer on my own! If you have a project and some sub-project (or module or whatever the jargon is) that are both managed with CMake, they should be in separate directories (directory trees), and each of them have

Re: [CMake] cmake analogue - syncProj visual studio generation tool

2018-03-31 Thread Cornelis Bockemühl
Hello Tarmo, Reading this on the CMake mailing list I am first of all asking myself: Why should I go for such a certainly nice alternative if I already have CMake? At the same time I think that _answering_ this question is probably not a subject that fits into the CMake mailing list because it

Re: [CMake] Parallel build setup question

2018-02-18 Thread Cornelis Bockemühl
ase during development I decided to stay with the QtCreator - CMake - ninja "team of tools"! Regards, Cornelis Am Samstag, den 17.02.2018, 08:06 +0100 schrieb Cornelis Bockemühl: > Thanks also for this hint: I will give it a try! > > Regards, Cornelis > > Am Freitag,

Re: [CMake] Parallel build setup question

2018-02-16 Thread Cornelis Bockemühl
Thanks also for this hint: I will give it a try! Regards, Cornelis Am Freitag, den 16.02.2018, 21:35 +0300 schrieb Konstantin Tokarev: > > > 16.02.2018, 21:32, "Cornelis Bockemühl" <corne...@bockemuehl.ch>: > > Thanks - that did the trick! > > &

Re: [CMake] Parallel build setup question

2018-02-16 Thread Cornelis Bockemühl
ule by module, or whatever. Anyway, my question is answered - thanks again! Regards, Cornelis Am Freitag, den 16.02.2018, 20:25 +0300 schrieb Konstantin Tokarev: >   >   > > 16.02.2018, 20:20, "Cornelis Bockemühl" <corne...@bockemuehl.ch>: > > > > Thanks f

Re: [CMake] Parallel build setup question

2018-02-16 Thread Cornelis Bockemühl
ke maybe “Tool Arguments” is what you want (see “CMake Build Steps”) ?  BTW, the way I do this myself (since I don’t use an IDE) is something like “cmake --build . -- -j 8”  where the double dash stops shell argument processing and effectively passes everything else on to the build tool that cmake ul

[CMake] Parallel build setup question

2018-02-16 Thread Cornelis Bockemühl
Hello, Somehow I seem to miss some crucial point regarding setup for parallel build with CMake, so I would be happy if somebody can push me the last few millimeters to hit my target! My configuration is on OpenSuse Linux (Leap - 64-bit), working with QtCreator and CMake, using the "make"

Re: [CMake] Strange error with brand new CMake 4.10.0 - SOLVED

2017-11-22 Thread Cornelis Bockemühl
Mittwoch, den 22.11.2017, 09:56 +0100 schrieb Cornelis Bockemühl: > > > > > Yesterday I had a problem with the CMake release candidate 4 for the version 4.10.0 on Windows with MSVC 2015, and I realized by reading the CMakeOutput.log that testing the Manifest Tool (MT) was failing. An

[CMake] Strange error with brand new CMake 4.10.0

2017-11-22 Thread Cornelis Bockemühl
Yesterday I had a problem with the CMake release candidate 4 for the version 4.10.0 on Windows with MSVC 2015, and I realized by reading the CMakeOutput.log that testing the Manifest Tool (MT) was failing. And with a little Google I got the impression that this is now fixed with the final release:

Re: [CMake] find_library not finding libraries - why?

2017-11-09 Thread Cornelis Bockemühl
Thanks - that was it! Now CMake is happy - just a question of seconds... Regarcs, Cornelis Am Donnerstag, den 09.11.2017, 09:30 + schrieb CHEVRIER, Marc: > > > > The problem is on NAMES argument. You have to specify library names without prefix. So > Clp must be used rather than libClp. >