Re: [CMake] Editing IMPORTED targets

2016-10-16 Thread Stephen Kelly
Ivan Shapovalov wrote: > On 2016-10-03 at 14:43 +0200, Stephen Kelly wrote: >> Ivan Shapovalov wrote: >> >> > Hello! >> > >> > Using find modules to detect dependencies has a nice feature: it is >> > then possible to edit the resulting cache entries to link to >> > different >> > libraries (or

Re: [CMake] Editing IMPORTED targets

2016-10-16 Thread Ivan Shapovalov
On 2016-10-03 at 14:43 +0200, Stephen Kelly wrote: > Ivan Shapovalov wrote: > > > Hello! > > > > Using find modules to detect dependencies has a nice feature: it is > > then possible to edit the resulting cache entries to link to > > different > > libraries (or add other libraries along the

Re: [CMake] How to configure CMake to add current path to include directive.

2016-10-16 Thread Craig Scott
I think if you manipulate the target property INCLUDE_DIRECTORIES directly, you should be able to force a "." in there without having it substituted for an absolute path. By this I mean use set_property() or

[CMake] Cannot get automoc to work properly with recommended Qt5 support method

2016-10-16 Thread Alan W. Irwin
Hi Stephen: I am addressing you directly (as well as the list) because you have been so helpful with Qt5 issues in the past. The PLplot build system (some of whose components depend on Qt5) currently uses one of the older Qt5 support methods documented at

Re: [CMake] Cannot get automoc to work properly with recommended Qt5 support method

2016-10-16 Thread Alan W. Irwin
On 2016-10-16 13:43-0700 Alan W. Irwin wrote: To move to a related topic, the above URL has a tutorial example for the recommended support method which builds the helloworld target from main.cpp. It would be nice for Qt5 users to learn from that tutorial example by building it themselves, but

[CMake] How to configure CMake to add current path to include directive.

2016-10-16 Thread Steve Lorimer
In makefile parlance, I'm trying to add -I. (ie: the current directory) to my include paths I tried the following: include_directories(".") This doesn't work unfortunately, as relative paths are interpreted as relative to the current source directory

Re: [CMake] How to configure CMake to add current path to include directive.

2016-10-16 Thread Steve Lorimer
Thanks Craig Not sure if I'm doing it right, but I couldn't get that to work. Would you be able to give me an example please? Thanks Steve On 16 October 2016 at 17:51, Craig Scott wrote: > I think if you manipulate the target property INCLUDE_DIRECTORIES >

Re: [CMake] How to configure CMake to add current path to include directive.

2016-10-16 Thread Craig Scott
Something like the following was what I had in mind (untested): get_target_property(incDirs someTarget INCLUDE_DIRECTORIES) list(APPEND incDirs .) set_target_properties(someTarget PROPERTIES INCLUDE_DIRECTORIES "${incDirs}") On Mon, Oct 17, 2016 at 10:31 AM, Steve Lorimer

Re: [CMake] How to configure CMake to add current path to include directive.

2016-10-16 Thread Steve Lorimer
Thanks Craig Looks like it did what you intended, but cmake won't allow it CMake Error in foo/CMakeLists.txt: Found relative path while evaluating include directories of "foo": "." Bummer! :( On 16 October 2016 at 18:35, Craig Scott wrote: > Something like

Re: [CMake] Cannot get automoc to work properly with recommended Qt5 support method

2016-10-16 Thread Alan W. Irwin
On 2016-10-16 13:43-0700 Alan W. Irwin wrote: Hi Stephen: I am addressing you directly (as well as the list) because you have been so helpful with Qt5 issues in the past. The PLplot build system (some of whose components depend on Qt5) currently uses one of the older Qt5 support methods

[Cmake-commits] CMake branch, next, updated. v3.7.0-rc1-533-g0fde927b

2016-10-16 Thread Stephen Kelly
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, next has been updated via 0fde927b36aa8972da15fefa3e0f01ee22c6bcef (commit) via

[Cmake-commits] CMake branch, next, updated. v3.7.0-rc1-537-gd1f0e30

2016-10-16 Thread Stephen Kelly
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, next has been updated via d1f0e3064827cbaa929e8d55ae69ec40fda43a45 (commit) via

[Cmake-commits] CMake branch, next, updated. v3.7.0-rc1-539-g0e69f51

2016-10-16 Thread Stephen Kelly
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, next has been updated via 0e69f517951fefc4f4917d3101259c8a7a7fbc66 (commit) via

[Cmake-commits] CMake branch, next, updated. v3.7.0-rc1-547-g54379ca

2016-10-16 Thread Gregor Jasny via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, next has been updated via 54379cab91d6b2d6940d65fa8dd31530bd30ae52 (commit) via

[Cmake-commits] CMake branch, next, updated. v3.7.0-rc1-549-ga23f4f0

2016-10-16 Thread Gregor Jasny via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, next has been updated via a23f4f0666fdbfb7ab75635f62e216b5d5d158d0 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.7.0-rc1-226-g0cbe2ed

2016-10-16 Thread Kitware Robot
_VERSION_MINOR 7) -set(CMake_VERSION_PATCH 20161016) +set(CMake_VERSION_PATCH 20161017) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/

[cmake-developers] Java_INCLUDE_DIRS not populated by FindJava.cmake

2016-10-16 Thread Craig Scott
Unless I'm missing something, it would seem that even though the documentation says FindJava.cmake sets Java_INCLUDE_DIRS, I don't see anything in that file or things it includes which try to set it. Is the documentation out of date or is the FindJava.cmake implementation missing some things? Or