[cmake-developers] [CMake 0015158]: MemCheck: Valgrind with multiple supressions files

2014-09-16 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=15158 == Reported By:trsystran Assigned To:

[cmake-developers] vs-nsight-tegra-generator topic

2014-09-16 Thread Brad King
Hi Folks, This topic introduces support for generating VS project files for the NVIDIA Nsight Tegra Visual Studio Edition, which then builds for Android. I've merged it to 'next' for testing: Merge topic 'vs-nsight-tegra-generator' into next

Re: [cmake-developers] vs-nsight-tegra-generator topic

2014-09-16 Thread Brad King
On 09/16/2014 10:05 AM, Brad King wrote: Please take a look if you are interested in Android development. [snip] On 09/15/2014 07:04 PM, Stephen Kelly wrote: Brad King wrote: On 09/10/2014 11:49 AM, Stephen Kelly wrote: target_link_libraries(mylib cmake::android-16) Interesting idea. These

Re: [cmake-developers] vs-nsight-tegra-generator topic

2014-09-16 Thread Stephen Kelly
Brad King wrote: On 09/16/2014 10:05 AM, Brad King wrote: Please take a look if you are interested in Android development. [snip] On 09/15/2014 07:04 PM, Stephen Kelly wrote: Brad King wrote: On 09/10/2014 11:49 AM, Stephen Kelly wrote: target_link_libraries(mylib cmake::android-16)

[cmake-developers] [CMake 0015159]: MemCheck CDash: timeout reported as failed instead of timeout

2014-09-16 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=15159 == Reported By:trsystran Assigned To:

[cmake-developers] Exporting a library shared and static

2014-09-16 Thread Gereon Kremer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I have a project that consists of a library and an application that are developed as two separated projects (different repos, separate cmake setups, etc.). Let's call them lib and app. The app exports itself to ~/.cmake/ and creates a

[cmake-developers] [CMake 0015160]: Different timeout for test and memcheck

2014-09-16 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=15160 == Reported By:trsystran Assigned To:

[cmake-developers] [PATCH 3/6] Resolve replace @rpath placeholders

2014-09-16 Thread Adam Strzelecki
This is done by gathering LC_RPATH commands for main bundle executable and using it for @rpath lookup in dependent frameworks. To achieve this all utility functions now take path to executable rather than path to its directory. This enabled apps using @rpath to be bundled correctly, which will

Re: [cmake-developers] OS X packaging updates

2014-09-16 Thread Adam Strzelecki
I had to revert again because it causes the Qt4Deploy to fail. The topic changes the signature of gp_file_type. User projects could be calling that, so we can't change it. In this case it is the Modules/DeployQt4.cmake file that was calling it. Thanks for spotting that. I've send updated

Re: [cmake-developers] [PATCH 3/6] Resolve replace @rpath placeholders

2014-09-16 Thread Clinton Stimpson
This patch has problems. You are calling BundleUtilities::get_item_key() from GetPrerequisites::gp_resolve_item(). There are users, including myself, which sometimes use GetPrerequisites.cmake but don't use BundleUtilities.cmake. So you cannot call BundleUtilities functions from

[cmake-developers] [PATCH 3/6] Resolve replace @rpath placeholders

2014-09-16 Thread Adam Strzelecki
This is done by gathering LC_RPATH commands for main bundle executable and using it for @rpath lookup in dependent frameworks. To achieve this all utility functions now take path to executable rather than path to its directory. This enabled apps using @rpath to be bundled correctly, which will

[cmake-developers] [PATCH 4/6] Process executables first when scanning bundle

2014-09-16 Thread Adam Strzelecki
This makes rpaths populated (if any), so libraries containing @rpath will be resolved properly. --- Modules/BundleUtilities.cmake | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Modules/BundleUtilities.cmake b/Modules/BundleUtilities.cmake

Re: [cmake-developers] [PATCH 3/6] Resolve replace @rpath placeholders

2014-09-16 Thread Adam Strzelecki
Instead, can you extract rpaths for a binary in BundleUtilities and pass that into gp_resolve_item via the existing dirs argument? Okay, fixed this in the new 3/6 + 4/6 patches, attached to previous patch post. FYI I cannot use existing dirs arguments because other replacements search paths

Re: [cmake-developers] [PATCH 3/6] Resolve replace @rpath placeholders

2014-09-16 Thread Clinton Stimpson
On Tuesday, September 16, 2014 08:48:31 PM Adam Strzelecki wrote: Instead, can you extract rpaths for a binary in BundleUtilities and pass that into gp_resolve_item via the existing dirs argument? Okay, fixed this in the new 3/6 + 4/6 patches, attached to previous patch post. FYI I

Re: [cmake-developers] [PATCH 3/6] Resolve replace @rpath placeholders

2014-09-16 Thread Adam Strzelecki
No? These functions are called by other codes and we can't just change the meaning of the arguments. You are completely right. I am changing all stuff back, once I pass rpath as optional argument we can have exepath everywhere. Thanks for your feedback. Regards, -- Adam -- Powered by

Re: [cmake-developers] [PATCH 3/6] Resolve replace @rpath placeholders

2014-09-16 Thread Adam Strzelecki
I have sent [PATCH 3/5] Resolve replace @rpath placeholders which replaces previous 3/6 and obsoletes 4/6. Since it is getting messy like checking fixing maybe stage account and topic branch would be more accurate. --Adam -- Powered by www.kitware.com Please keep messages on-topic and

Re: [cmake-developers] [PATCH 3/6] Resolve replace @rpath placeholders

2014-09-16 Thread Clinton Stimpson
On Tuesday, September 16, 2014 10:53:14 PM Adam Strzelecki wrote: I have sent [PATCH 3/5] Resolve replace @rpath placeholders which replaces previous 3/6 and obsoletes 4/6. Since it is getting messy like checking fixing maybe stage account and topic branch would be more accurate. --Adam

Re: [cmake-developers] [PATCH 3/6] Resolve replace @rpath placeholders

2014-09-16 Thread Adam Strzelecki
Yes, it would be easier to review on stage or on github. Thanks. Here it is: https://github.com/nanoant/CMake/commits/fix-bundle-rpaths I would love to get stage access though ;) Cheers, -- Adam -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [cmake-developers] vs-nsight-tegra-generator topic

2014-09-16 Thread Mourad Boufarguine
On Tue, Sep 16, 2014 at 4:05 PM, Brad King brad.k...@kitware.com wrote: Hi Folks, This topic introduces support for generating VS project files for the NVIDIA Nsight Tegra Visual Studio Edition, which then builds for Android. I've merged it to 'next' for testing: Hi Brad, I am really

Re: [cmake-developers] [PATCH 3/6] Resolve replace @rpath placeholders

2014-09-16 Thread Clinton Stimpson
On Tuesday, September 16, 2014 11:01:33 PM Adam Strzelecki wrote: Yes, it would be easier to review on stage or on github. Thanks. Here it is: https://github.com/nanoant/CMake/commits/fix-bundle-rpaths I would love to get stage access though ;) Cheers, What is the new optional

[cmake-developers] [CMake 0015161]: FindProtobuf: Generated source not regenerated on library update

2014-09-16 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=15161 == Reported By:hansmi Assigned To:

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Petr Kmoch
Hi. I've never worked with ExternalProject myself, so I can't comment with certainty, but from what I understand, the correct way of using ExternalProject is to add your own project as an ExternalProject as well. Basically, the toplevel CMakeList becomes a superbuild which *only* does

[CMake] Code Coverage Bullseye

2014-09-16 Thread Rajeev Kumar
Hi, I am trying to configure the code coverage using the ctest script. I took help from : http://www.cmake.org/Wiki/CTest/Coverage My script looks like this: *cmake_minimum_required(VERSION 3.0)set(CTEST_SOURCE_DIRECTORY

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Micha Hergarden
Hello all, I do use the ExternalProject to prebuild some binaries, without the 'superproject' setup, and it does seem to work. Using the add_dependencies, I can make sure some third party libs are prebuild before I start to build my project. I have seen some issues with ExternalProject (failing

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Yu Jing
I am in OSX 10.9.4 , a sample in github is : https://github.com/yujing5b5d/cmake_sample after git clone this project , a operation like this : yu:cmake_sample yu$ mkdir build

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Micha Hergarden
It may be that you have line 63 and 64 the wrong way around: ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(lib) The externalproject is added in lib, but you add a dependency on it in src. CMake will descend in the subdirectories in the order you supply them. Does reversing the directories help?

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Yu Jing
Hello Micha , It seems doesn’t work. I updated code , and move the external project to src , and it still not work. what should be noticed is : 1. If I just use $ make as make command ,all styles are work 2. If I use in multi jobs $ make -j8 It will run abnormal (not desired sequence) . On

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Marcel Loose
Hi Yu, I think you need to add an explicit dependency of main.cc on the generated (well, not really generated, but installed) header file crfpp.h. CMake has no clue as to what files are being compiled/installed by your external project, so you have to make this explicit. HTH, Marcel Loose. On

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Micha Hergarden
Hello Yu, It seems I too needed another trick to make it work: set_property(TARGET CRFPP_EX_PROJ PROPERTY EXCLUDE_FROM_ALL TRUE) set_property(TARGET LEVELDB_EX_PROJ PROPERTY EXCLUDE_FROM_ALL TRUE) ADD_DEPENDENCIES(cmake_sample iniparser_static CRFPP_EX_PROJ LEVELDB_EX_PROJ) By default the

Re: [CMake] Get Visual Studio target Arch

2014-09-16 Thread David Cole via CMake
I still cant really make some arch specific ifdefs in my cmake scripts using this approach. That's the point of a multi-configuration, multi-architecture Visual Studio solution: you defer choosing the configuration *and* the architecture until build time. No CMake time decisions are possible

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Yu Jing
Hello Micha, It seems still not work…. On Sep 16, 2014, at 17:36, Micha Hergarden micha.hergar...@gmail.com wrote: Hello Yu, It seems I too needed another trick to make it work: set_property(TARGET CRFPP_EX_PROJ PROPERTY EXCLUDE_FROM_ALL TRUE) set_property(TARGET LEVELDB_EX_PROJ PROPERTY

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Micha Hergarden
Hello Yu, That is because of the following lines: AUX_SOURCE_DIRECTORY(. DIR_TARGET) ADD_LIBRARY (relfiles ${DIR_TARGET}) I think you may be misusing the aux_source_directory command. I have tested your setup on a linux machine with -j8 and it still builds. Did you take a look at the

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Yu Jing
I am trying … That’s a very clear organization On Sep 16, 2014, at 19:57, Micha Hergarden micha.hergar...@gmail.com wrote: Hello Yu, That is because of the following lines: AUX_SOURCE_DIRECTORY(. DIR_TARGET) ADD_LIBRARY (relfiles ${DIR_TARGET}) I think you may be misusing the

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Yu Jing
Hello All, It is is because of # AUX_SOURCE_DIRECTORY(. DIR_TARGET) # ADD_LIBRARY (relfiles ${DIR_TARGET}) That’s really a stupid fault ,and thanks for your debug …TAT I adjust the usage of External project , and it seems much better . Thanks for your help . Thanks for

[CMake] project not found despite being found

2014-09-16 Thread Biddiscombe, John A.
I have a project which generates a project-config.cmake file and a project-config-version.cmake file in the relevant place, When another project tries to find_package it, I receive this message from cmake Found package configuration file:

Re: [CMake] project not found despite being found

2014-09-16 Thread Nils Gladitz
On 16.09.2014 17:38, Biddiscombe, John A. wrote: Found package configuration file: /Users/biddisco/build/cmakesuper/xxx/xxx-config.cmake but it set xxx_FOUND to FALSE so package “xxx is considered to be NOT FOUND. “ Which is not expected. If I set xxx_FOUND in the config, it

[CMake] QUIET option removes all output of find_package

2014-09-16 Thread Nicola Mori via CMake
According to the Cmake documentation for find_package: http://www.cmake.org/cmake/help/v3.0/command/find_package.html the QUIET option should suppress the output only when a package cannot be found: The QUIET option disables messages if the package cannot be found. From my experience, QUIET

Re: [CMake] FW: Parallel GNU make issue

2014-09-16 Thread Hennigan, Gary L
Bill and David, Thanks for the replies. I had to shift to something else for a bit but I'm back to looking at this... Bill, I'm not sure what you mean by external projects? My software is built as part of a large suite of open-source software collectively named Trilinos that is owned, or at

Re: [CMake] Get Visual Studio target Arch

2014-09-16 Thread Gilles Khouzam
Hi David, Alexey I'm glad to hear your enthusiasm about our involvement with CMake. We're still trying to understand the issues that people are facing and how we can help improve those. The multi-platform support is something somewhat experimental that will have issues, but getting feedback

[Cmake-commits] CMake branch, next, updated. v3.0.2-5342-g5acb1b2

2014-09-16 Thread Brad King
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 5acb1b2c0191df17c7f2e8fdc96c2e6956d81a71 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.0.2-1872-g56af886

2014-09-16 Thread Brad King
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 56af8866038de20eb837d882aa9879c17e146ef7 (commit) via

[Cmake-commits] CMake branch, next, updated. v3.0.2-5345-g38a4c3e

2014-09-16 Thread Brad King
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 38a4c3e7376e207f09c559a7a14590d6060ae9e5 (commit) via

[Cmake-commits] CMake branch, next, updated. v3.0.2-5355-g2403568

2014-09-16 Thread Brad King
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 240356877edd2ec55024b51bd0b862fcef002ee1 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.0.2-1873-g7b11f87

2014-09-16 Thread Kitware Robot
20140916) +set(CMake_VERSION_PATCH 20140917) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- CMake