Re: [CMake] CMAKE_*_IMPLICIT_INCLUDE_DIRECTORIES with MinGW

2018-11-07 Thread Olivier Croquette
Hi everyone, any feedback on this? As a summary, it's about adding the default include paths of GCC to the variables "CMAKE_*_IMPLICIT_INCLUDE_DIRECTORIES" to avoid CMake modules or scripts to mess up with them, more specifically with their order. Cheers, Olivier On 2018-11-3 21:41,

[Cmake-commits] CMake branch, master, updated. v3.13.0-rc3-348-g4193430

2018-11-07 Thread Kitware Robot
t a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index ad29c57..5f7dd8a 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -1,5 +1,5 @@ # CMake version number components. set(CMake_VERSION_MAJOR 3) set(CMake_VERSION_MINOR 13) -set(CMake_VERSION_PATCH 20181107) +set(CMake_VER

[CMake] Using cmake-gui with Codeblocks

2018-11-07 Thread Frank Muir
Hello, I can use cmake-gui successfully with “Visual Studio 15 2017 Win64,” but am not successful with using “Codeblocks – Nmake Makefiles.” I can use both successfully from the commandline to make Makrfiles. Does cmake-gui work with codeblocks? If it does, can somebody suggest some

Re: [CMake] Link order (Ubuntu)

2018-11-07 Thread Giorgio Scorzelli
I finally found this hack: target_link_libraries(MyExe B $ ImpLib) so I'm forcing the 'A' dependency to appear before the ImpLib. Note that if I use: target_link_libraries(MyExe B A ImpLib) it does not work. I think it's because Cmake it's internally erasing unnecessary dependencies.

Re: [CMake] Link order (Ubuntu)

2018-11-07 Thread Bo Zhou
Oh, if that's shared libraries, maybe you have to setup the LD_LIBRARY_PATH well for the shared libraries before linking, it just allows the linker to be able to locate the all necessary dynamic libraries during the linking. It happens sometimes on Linux, but not exists on OSX and Windows. On

Re: [CMake] Uninstalling CMake from Linux?

2018-11-07 Thread Alan W. Irwin
On 2018-11-07 22:48- Osman Zakir wrote: I want to remove CMake from my Docker image in order to reduce the image size (I'm also going to remove g++, make and build-essential -- it's after the executable program has been built). How do I do this? My opinion is this question is off-topic

[CMake] Uninstalling CMake from Linux?

2018-11-07 Thread Osman Zakir
I want to remove CMake from my Docker image in order to reduce the image size (I'm also going to remove g++, make and build-essential -- it's after the executable program has been built). How do I do this? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ

Re: [CMake] LOCATION/CMP0026/export/import

2018-11-07 Thread Hendrik Greving
Ok, that works for us! On Wed, Nov 7, 2018 at 2:29 PM Robert Maynard wrote: > Yes you can get if a target is imported by seeing if the IMPORTED > property is set to true. ( > https://cmake.org/cmake/help/v3.12/prop_tgt/IMPORTED.html ) > On Wed, Nov 7, 2018 at 5:24 PM Hendrik Greving > wrote: >

Re: [CMake] LOCATION/CMP0026/export/import

2018-11-07 Thread Robert Maynard
Yes you can get if a target is imported by seeing if the IMPORTED property is set to true. ( https://cmake.org/cmake/help/v3.12/prop_tgt/IMPORTED.html ) On Wed, Nov 7, 2018 at 5:24 PM Hendrik Greving wrote: > > Ok, it seems to be IMPORT_LOCATION, not IMPORTED_LOCATION > We have a (.cmake) file

Re: [CMake] LOCATION/CMP0026/export/import

2018-11-07 Thread Hendrik Greving
Ok, it seems to be IMPORT_LOCATION, not IMPORTED_LOCATION We have a (.cmake) file that shared among things that use it for build targets and external projects for imported targets. Is there a way to find out whether a target is imported or a build target? On Wed, Nov 7, 2018 at 2:19 PM Robert

Re: [CMake] LOCATION/CMP0026/export/import

2018-11-07 Thread Robert Maynard
I am not seeing any cmake errors/warnings when I do so :) On Wed, Nov 7, 2018 at 5:15 PM Hendrik Greving wrote: > > Ok! Except (see above) I do not think one can actually read > IMPORTED_LOCATION, can I? > Thanks! - again! > > On Wed, Nov 7, 2018 at 2:07 PM Robert Maynard > wrote: >> >>

Re: [CMake] LOCATION/CMP0026/export/import

2018-11-07 Thread Hendrik Greving
Ok! Except (see above) I do not think one can actually read IMPORTED_LOCATION, can I? Thanks! - again! On Wed, Nov 7, 2018 at 2:07 PM Robert Maynard wrote: > Looking at CMP0026 more, I believe should be able to read either the > IMPORTED_LOCATION or LOCATION for any import target without

Re: [CMake] LOCATION/CMP0026/export/import

2018-11-07 Thread Robert Maynard
Looking at CMP0026 more, I believe should be able to read either the IMPORTED_LOCATION or LOCATION for any import target without triggering the policy, as the policy only pertains to 'build' targets and not 'import' targets. On Wed, Nov 7, 2018 at 4:51 PM Hendrik Greving wrote: > > Is

Re: [CMake] LOCATION/CMP0026/export/import

2018-11-07 Thread Hendrik Greving
Is IMPORTED_LOCATION a property one can read? I was under the assumption that setting IMPORTED_LOCATION becomes LOCATION (for imported targets). And as such, reading this LOCATION generates the warning. I just tried and it indeed didn't let me read IMPORTED_LOCATION. On Wed, Nov 7, 2018 at 12:36

Re: [CMake] LOCATION/CMP0026/export/import

2018-11-07 Thread Robert Maynard
I believe that IMPORTED_LOCATION is safe to use. On Wed, Nov 7, 2018 at 3:27 PM Hendrik Greving wrote: > > So IMPORTED_LOCATION is obsolete as well? (since reading LOCATION is obsolete) > > On Wed, Nov 7, 2018 at 11:39 AM Robert Maynard > wrote: >> >> With generator expressions making the

Re: [CMake] LOCATION/CMP0026/export/import

2018-11-07 Thread Hendrik Greving
So IMPORTED_LOCATION is obsolete as well? (since reading LOCATION is obsolete) On Wed, Nov 7, 2018 at 11:39 AM Robert Maynard wrote: > With generator expressions making the reading of LOCATION non-viable > during configuration time ( since the actual location is now evaluated > at generate

Re: [CMake] Why is obj.dir/depend.make.tmp not renamed to obj.dir/depend.make?

2018-11-07 Thread frodak
Did cmake finish to completion when generating the Makefiles? On Wed, Nov 7, 2018 at 11:46 AM Steffen Dettmer wrote: > Hi, > > One (of really many) build trees contains a file "depend.make.tmp" and > ignores dependencies leading to broken (incremental) builds. There > also is a "depend.make"

Re: [CMake] LOCATION/CMP0026/export/import

2018-11-07 Thread Robert Maynard
With generator expressions making the reading of LOCATION non-viable during configuration time ( since the actual location is now evaluated at generate time ), the general solution is that you need to move your LOCATION reading logic also to generate time. In general this means using something

[CMake] LOCATION/CMP0026/export/import

2018-11-07 Thread Hendrik Greving
Hello, w/ LOCATION property made obsolete, how can one read a target's LOCATION for imported targets? Previously, IMPORTED_LOCATION was conveyed for such targets, but reading the LOCATION property of imported targets leads to the same warning as for project targets? Thanks in advance --

[CMake] How to instruct CMAKE not to generate a .lib for the target .exe

2018-11-07 Thread llvm 999
I have a very simple CMAKE to generate a .exe target (say xyz.exe) with several .cpp source files and some external .lib files (boost and wxwidgets). For some reason, CMAKE generates a .lib for the target (xyz.lib) and then generate the .exe (xyz.exe) using the /IMPLIB liner option to pull in

[cmake-developers] [ANNOUNCE] CMake 3.13.0-rc3 is ready for testing

2018-11-07 Thread Robert Maynard
I am proud to announce the third CMake 3.13 release candidate. https://cmake.org/download/ The first 3.13.0 release candidates included a change to allow generator expressions in "install(CODE)" and "install(SCRIPT)". This has been reverted in rc2 due to breaking backwards compatibility. See

[CMake] [ANNOUNCE] CMake 3.13.0-rc3 is ready for testing

2018-11-07 Thread Robert Maynard
I am proud to announce the third CMake 3.13 release candidate. https://cmake.org/download/ The first 3.13.0 release candidates included a change to allow generator expressions in "install(CODE)" and "install(SCRIPT)". This has been reverted in rc2 due to breaking backwards compatibility. See

[Cmake-commits] CMake branch, release, updated. v3.13.0-rc2-51-g8d70ed5

2018-11-07 Thread Kitware Robot
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, release has been updated via 8d70ed5a10362209d265a15d993f319235aea7e5 (commit) from

[Cmake-commits] CMake branch, master, updated. v3.13.0-rc2-396-g48de916

2018-11-07 Thread Kitware Robot
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, master has been updated via 48de9169d0624b323462c084b68cb1fdb693d91b (commit) via

[Cmake-commits] CMake branch, release, updated. v3.13.0-rc2-50-g3bad96c

2018-11-07 Thread Kitware Robot
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, release has been updated via 3bad96c9888932ec2b792f2febfee6cc58bf8bbd (commit) via

[Cmake-commits] CMake branch, master, updated. v3.13.0-rc2-391-g7e6b787

2018-11-07 Thread Kitware Robot
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, master has been updated via 7e6b78759904dcf31d780a6e2f14f3821f4f23df (commit) via

[Cmake-commits] CMake annotated tag, v3.13.0-rc3, created. v3.13.0-rc3

2018-11-07 Thread Kitware Robot
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 annotated tag, v3.13.0-rc3 has been created at 3b466627c5d387c21b003d641c14685c7a6c2335 (tag) tagging

[CMake] Why is obj.dir/depend.make.tmp not renamed to obj.dir/depend.make?

2018-11-07 Thread Steffen Dettmer
Hi, One (of really many) build trees contains a file "depend.make.tmp" and ignores dependencies leading to broken (incremental) builds. There also is a "depend.make" file in the same directory saying "Empty dependencies file. This may be replaced when dependencies are built.", so I assume the tmp

[Cmake-commits] CMake branch, master, updated. v3.13.0-rc2-398-g71db326

2018-11-07 Thread Kitware Robot
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, master has been updated via 71db32660eed1f70c06b624e661f8f5c2b938907 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.13.0-rc2-367-gdf54255

2018-11-07 Thread Kitware Robot
SION_PATCH 20181107) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- CMake ___