Re: [cmake-developers] Making _IMPORT_PREFIX from an installed exports-file available to an including file

2011-06-05 Thread Michael Wild
On 06/04/2011 10:28 PM, Alexander Neundorf wrote: Hi, when installing an export-file cmake has the nice feature to calculate the CMAKE_INSTALL_PREFIX from the current location: -8--8--8 # Compute the installation prefix relative to this

Re: [cmake-developers] Making _IMPORT_PREFIX from an installed exports-file available to an including file

2011-06-05 Thread Alexander Neundorf
On Sunday, June 05, 2011 11:50:12 AM Michael Wild wrote: On 06/04/2011 10:28 PM, Alexander Neundorf wrote: Hi, when installing an export-file cmake has the nice feature to calculate the CMAKE_INSTALL_PREFIX from the current location: ... If so, would it be ok if I move the code for

Re: [cmake-developers] Making _IMPORT_PREFIX from an installed exports-file available to an including file

2011-06-05 Thread Michael Wild
On 06/05/2011 08:50 PM, Alexander Neundorf wrote: On Sunday, June 05, 2011 11:50:12 AM Michael Wild wrote: On 06/04/2011 10:28 PM, Alexander Neundorf wrote: Hi, when installing an export-file cmake has the nice feature to calculate the CMAKE_INSTALL_PREFIX from the current location: ... If

Re: [cmake-developers] Improved support for using cmake-based libraries in non-cmake projects

2011-06-05 Thread Eric Noulard
2011/6/4 Alexander Neundorf neund...@kde.org: Hi, KDE is getting more modular, so instead of a few huge modules there will be much more independent libraries. We'll try to make all those libraries install proper FooConfig.cmake files. Currently most of these libraries install already

Re: [cmake-developers] Creating a separate project/package which provides cmake extensions/modules

2011-06-05 Thread Eric Noulard
2011/6/4 Alexander Neundorf neund...@kde.org: Hi, again from the KDE sprint... We have around 150 cmake modules in kdelibs... Several libraries are not before kdelibs, so they don't have access to those. So, what we came up with is that create a new package which just contains our cmake

Re: [cmake-developers] Adding argument OPTIONAL to find_package() and add_subdirectory

2011-06-05 Thread Eric Noulard
2011/6/4 Alexander Neundorf neund...@kde.org: Hi, again from the KDE sprint... 1) We have a macro macro_optional_find_package(). The purpose is to be able to build without a specific package even if that package is installed and would actually be found by the find_package() call.

Re: [cmake-developers] Adding argument OPTIONAL to find_package() and add_subdirectory

2011-06-05 Thread Alexander Neundorf
On Sunday, June 05, 2011 11:50:50 PM Eric Noulard wrote: 2011/6/4 Alexander Neundorf neund...@kde.org: Hi, again from the KDE sprint... 1) We have a macro macro_optional_find_package(). The purpose is to be able to build without a specific package even if that package is

Re: [cmake-developers] Improved support for using cmake-based libraries in non-cmake projects

2011-06-05 Thread Alexander Neundorf
On Sunday, June 05, 2011 11:21:43 PM Eric Noulard wrote: 2011/6/4 Alexander Neundorf neund...@kde.org: Hi, KDE is getting more modular, so instead of a few huge modules there will be much more independent libraries. We'll try to make all those libraries install proper FooConfig.cmake

Re: [cmake-developers] Adding argument OPTIONAL to find_package() and add_subdirectory

2011-06-05 Thread Eric Noulard
2011/6/6 Alexander Neundorf neund...@kde.org: On Sunday, June 05, 2011 11:50:50 PM Eric Noulard wrote: 2011/6/4 Alexander Neundorf neund...@kde.org: Hi, again from the KDE sprint... 1) We have a macro macro_optional_find_package(). The purpose is to be able to build without a

Re: [cmake-developers] Improved support for using cmake-based libraries in non-cmake projects

2011-06-05 Thread Eric Noulard
2011/6/6 Alexander Neundorf neund...@kde.org: On Sunday, June 05, 2011 11:21:43 PM Eric Noulard wrote: 2011/6/4 Alexander Neundorf neund...@kde.org: Hi, KDE is getting more modular, so instead of a few huge modules there will be much more independent libraries. We'll try to make all

Re: [cmake-developers] Adding argument OPTIONAL to find_package() and add_subdirectory

2011-06-05 Thread James Bigler
On Sun, Jun 5, 2011 at 4:44 PM, Alexander Neundorf neund...@kde.org wrote: On Sunday, June 05, 2011 11:50:50 PM Eric Noulard wrote: 2011/6/4 Alexander Neundorf neund...@kde.org: Hi, again from the KDE sprint... 1) We have a macro macro_optional_find_package(). The purpose

Re: [CMake] GenerateExportHeader macrr for CMake?

2011-06-05 Thread Hendrik Sattler
Am Samstag, 4. Juni 2011, 21:17:49 schrieb Stephen Kelly: Hi, I came up with an idea to simplify the creation of export headers for hidden visibility by using configure_file. After implementing it I saw that the idea has come up before :)

[CMake] Addition to FindGit

2011-06-05 Thread Quintus
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I'm working on a git-versioned project that I'd like to display it's version number for development versions like this: 1.2.3-dev (commit abc1234 on devel, 12/4/10) CMake's FindGit module seems to be quite limited as it just gives me the

Re: [CMake] GenerateExportHeader macrr for CMake?

2011-06-05 Thread Stephen Kelly
Hendrik Sattler wrote: Really why? There is no dynamic content in such a header file. I'm not sure what you mean? Could you be more specific? ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Addition to FindGit

2011-06-05 Thread Nicolas Desprès
Hi, That's a great idea. I'd like to contribute some function too. I have rewritten a couple of them while working on project versioned by Git. Cheers, -Nico On Sun, Jun 5, 2011 at 11:02 AM, Quintus sutn...@gmx.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I'm

Re: [CMake] GenerateExportHeader macrr for CMake?

2011-06-05 Thread Hendrik Sattler
Am Sonntag, 5. Juni 2011, 11:45:20 schrieb Stephen Kelly: Hendrik Sattler wrote: Really why? There is no dynamic content in such a header file. I'm not sure what you mean? Could you be more specific? This header file only contains static content. You don't even one definition per library,

Re: [CMake] GenerateExportHeader macrr for CMake?

2011-06-05 Thread Michael Wild
On 06/05/2011 05:34 PM, Hendrik Sattler wrote: Am Sonntag, 5. Juni 2011, 11:45:20 schrieb Stephen Kelly: Hendrik Sattler wrote: Really why? There is no dynamic content in such a header file. I'm not sure what you mean? Could you be more specific? This header file only contains static

Re: [CMake] GenerateExportHeader macrr for CMake?

2011-06-05 Thread Marcus D. Hanwell
On Sat, Jun 4, 2011 at 3:17 PM, Stephen Kelly steve...@gmail.com wrote: Hi, I came up with an idea to simplify the creation of export headers for hidden visibility by using configure_file. After implementing it I saw that the idea has come up before :)

Re: [CMake] GenerateExportHeader macrr for CMake?

2011-06-05 Thread Hendrik Sattler
Am Sonntag, 5. Juni 2011, 18:16:03 schrieb Michael Wild: On 06/05/2011 05:34 PM, Hendrik Sattler wrote: Am Sonntag, 5. Juni 2011, 11:45:20 schrieb Stephen Kelly: Hendrik Sattler wrote: Really why? There is no dynamic content in such a header file. I'm not sure what you mean? Could you

[CMake] Embedding one project inside a second

2011-06-05 Thread Richard Offer
I have two distinct projects - A and B - each has its own subversion repository etc - they are quite independent. Project A is nw and needs to be built 32bit and itself comprises both in-house and third party code. The third party code is built using ExternalProject_Add() Project B is built

Re: [CMake] GenerateExportHeader macrr for CMake?

2011-06-05 Thread Alexander Neundorf
On Sunday, June 05, 2011 08:43:02 PM Hendrik Sattler wrote: Am Sonntag, 5. Juni 2011, 18:16:03 schrieb Michael Wild: On 06/05/2011 05:34 PM, Hendrik Sattler wrote: Am Sonntag, 5. Juni 2011, 11:45:20 schrieb Stephen Kelly: Hendrik Sattler wrote: Really why? There is no dynamic content

Re: [CMake] GenerateExportHeader macrr for CMake?

2011-06-05 Thread Marcus D. Hanwell
On Sun, Jun 5, 2011 at 3:47 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Sunday, June 05, 2011 08:43:02 PM Hendrik Sattler wrote: Am Sonntag, 5. Juni 2011, 18:16:03 schrieb Michael Wild: On 06/05/2011 05:34 PM, Hendrik Sattler wrote: Am Sonntag, 5. Juni 2011, 11:45:20 schrieb

Re: [CMake] Addition to FindGit

2011-06-05 Thread Jean-Christophe Fillion-Robin
Hi Folks, This updated version of FindGit supports both git and git-svn. See http://viewvc.slicer.org/viewvc.cgi/Slicer4/trunk/CMake/FindGit.cmake?revision=16492view=markup Hth Jc 2011/6/5 Nicolas Desprès nicolas.desp...@gmail.com Hi, That's a great idea. I'd like to contribute some

[CMake] New build configuration based off existing configuration?

2011-06-05 Thread Ivan Neeson
Is it possible to easily add a new build configuration that is identical to an existing configuration (for example MinSizeRel2 which has exactly the same settings as MinSizeRel)? ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Scanning dependencies of target xxx is very slow.

2011-06-05 Thread jianhua
Hi Neundorf; Thanks for your kindly response on this issue. Usually it is not that slow. Can you give us some more information ? Of how many files consists your target approximately ? Under which operating system ? Is it maybe on NFS or samba ? I try to build a lib based on about 300 source