Re: [CMake] Usage of export(PACKAGE ...)

2013-03-28 Thread Jean-Christophe Fillion-Robin
Hi Folks, It turns out the "export(PACKAGE ..)" does NOT have issue, the problem was that the value I associated with _DIR was incorrect and since a package had been exported earlier, CMake found one despite the fact an error would have been expected. I guess it would make sens to add an option

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread Daniele E. Domenichelli
Hello, On 28/03/13 22:28, David Cole wrote: > I, too, live in the real world, in addition to having my theories about > it... :-) > > And, for what it's worth, I'd rather add a project config file to any > project out there that would accept code contributions from me than add > yet another fi

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread David Cole
Qt is actually the perfect example of this. Stephen Kelly has done a superb job getting project config files working with Qt 5. That's right -- you can actually do a find_package of Qt for Qt 5 with an existing CMake release, *without* having a FindQt5.cmake file in CMake itself. It's awesome!

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread Bill Hoffman
On 3/28/2013 5:28 PM, David Cole wrote: I, too, live in the real world, in addition to having my theories about it... :-) And, for what it's worth, I'd rather add a project config file to any project out there that would accept code contributions from me than add yet another find module into CMa

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread David Cole
I, too, live in the real world, in addition to having my theories about it... :-) And, for what it's worth, I'd rather add a project config file to any project out there that would accept code contributions from me than add yet another find module into CMake. Obviously, there will be cases w

Re: [CMake] Usage of export(PACKAGE ...)

2013-03-28 Thread David Cole
If _DIR is given and has a correct value, it is a bug if find_package finds the project anywhere else. Whether that's generally true or not, I sort of doubt it. It probably depends on the project itself, and the find and/or config files involved. I second Stephen's request for steps to reprodu

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread Alan W. Irwin
On 2013-03-28 16:41- Miller Henry wrote: [...] I have to deal with the real world where many projects don't provide a project config .cmake script. They see no reason to: they don't build with cmake, other downstreams don't build with cmake. It seems to them that they are supporting one sy

Re: [CMake] Usage of export(PACKAGE ...)

2013-03-28 Thread Stephen Kelly
Jean-Christophe Fillion-Robin wrote: > Hi Folks, > > I would like to discussed the usable of "export(PACKAGE ...)" statement. > > Based on my experience, it turns out that exporting the build tree in the > system package registry is a bad idea when building the same package > multiple time as it

Re: [CMake] Do not build targets whose dependencies are not available

2013-03-28 Thread Matthew Woehlke
On 2013-03-28 16:02, Chris Stankevitz wrote: On Tue, Mar 19, 2013 at 3:13 AM, Ansis Māliņš wrote: Q: Can cmake automatically not build "b" when "a" is not available? find_package(a) if(a_FOUND) ExternalProject_Add(b PREFIX blabla ...) endif() Hello, If I understand correctly, this is

[CMake] Usage of export(PACKAGE ...)

2013-03-28 Thread Jean-Christophe Fillion-Robin
Hi Folks, I would like to discussed the usable of "export(PACKAGE ...)" statement. Based on my experience, it turns out that exporting the build tree in the system package registry is a bad idea when building the same package multiple time as it is done on a dashboard client or a developer workst

Re: [CMake] Do not build targets whose dependencies are not available

2013-03-28 Thread Chris Stankevitz
On Tue, Mar 19, 2013 at 3:13 AM, Ansis Māliņš wrote: >> >> Q: Can cmake automatically not build "b" when "a" is not available? > > find_package(a) > if(a_FOUND) > ExternalProject_Add(b PREFIX blabla ...) > endif() Hello, If I understand correctly, this is what just happened: Chris: Is there

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread Alan W. Irwin
On 2013-03-28 13:26-0400 Jean-Christophe Fillion-Robin wrote: Hi Alan, You could look at: https://github.com/davidsansome/python-cmake-buildsystem More particularly this commit: - Export targets from both the installed and build tree [1] - Add generation of Config.cmake [2] [1] https://gith

Re: [CMake] Configure 32 bit build in 64 bit environment from cli

2013-03-28 Thread Bill Hoffman
On 3/28/2013 2:19 PM, Martin Koller wrote: I'm doing this with a toolchain file, so that cmake sees this as cross-compiling. E.g. I have the following toolchain file "linux_i686.toolchain.cmake": # toolchain file for building a 32bit version on a 64bit host # use it like this: # cmake -DCMAKE

Re: [CMake] Configure 32 bit build in 64 bit environment from cli

2013-03-28 Thread Martin Koller
On Wednesday 27 March 2013 10:37:12 Nicola Mori wrote: > Hello, for my project I'd like to be able to configure a 32 bit build > with GCC in a 64 bit Linux environment by setting variables from command > line interface. As far as I understand of CMake, this can be > accomplished by setting CMAKE

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread Bill Hoffman
On 3/28/2013 1:17 PM, Alan W. Irwin wrote: All projects should provide a "project config file .cmake script" readable by CMake's find_package, and installed in a location where CMake can find it, so that a CMake find module is completely unnecessary. Hi David: Your idea sounds like a good one,

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread Miller Henry
Nice theory, but I have to deal with the real world where many projects don't provide a project config .cmake script. They see no reason to: they don't build with cmake, other downstreams don't build with cmake. It seems to them that they are supporting one system, and there are hundreds. I do

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread Jean-Christophe Fillion-Robin
Hi Alan, You could look at: https://github.com/davidsansome/python-cmake-buildsystem More particularly this commit: - Export targets from both the installed and build tree [1] - Add generation of Config.cmake [2] [1] https://github.com/davidsansome/python-cmake-buildsystem/commit/73134d77881

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread Alan W. Irwin
On 2013-03-28 12:25-0400 David Cole wrote: CMake needs no new Find modules. All projects should provide a "project config file .cmake script" readable by CMake's find_package, and installed in a location where CMake can find it, so that a CMake find module is completely unnecessary. Hi Davi

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread Jean-Christophe Fillion-Robin
+1 On Thu, Mar 28, 2013 at 12:25 PM, David Cole wrote: > CMake needs no new Find modules. > > All projects should provide a "project config file .cmake script" readable > by CMake's find_package, and installed in a location where CMake can find > it, so that a CMake find module is completely un

Re: [CMake] CMakeModules repository at GitHub?

2013-03-28 Thread David Cole
CMake needs no new Find modules. All projects should provide a "project config file .cmake script" readable by CMake's find_package, and installed in a location where CMake can find it, so that a CMake find module is completely unnecessary. For other types of module improvements, I think bec

Re: [CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread Zamir Khan
I upgraded, but no luck. Fortunately, I figured it out and it was fairly simple (I really should have thought of this before posting to the mailing list!). I decided to go through with the conversion to see what VS 2010 was having problems with. It turns out that only one of the projects required

Re: [CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread Jean-Christophe Fillion-Robin
What about trying CMake 2.8.11rc1 ? See http://www.kitware.com/blog/home/post/462 On Thu, Mar 28, 2013 at 10:47 AM, Zamir Khan wrote: > Good idea, but unfortunately the same results with the 32-bit version. And > yes, it is VS 2010 Professional. CMake is version 2.8.10.2. > > > > -- > View this

Re: [CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread Zamir Khan
Good idea, but unfortunately the same results with the 32-bit version. And yes, it is VS 2010 Professional. CMake is version 2.8.10.2. -- View this message in context: http://cmake.3232098.n2.nabble.com/Conversion-Wizard-for-VS-2010-tp7583820p7583826.html Sent from the CMake mailing list archiv

Re: [CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread Jean-Christophe Fillion-Robin
You could try to generate the 32-bit version of your project and see if VS2010 works as expected. Do you confirm you have the Pro version of VS2010 ? Hth Jc On Thu, Mar 28, 2013 at 10:37 AM, Zamir Khan wrote: > Yes, with all due respect, that is pretty basic (although I understand > that there

Re: [CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread Jean-Christophe Fillion-Robin
Hi, By default solution files are probably associated with VS2008, did you make sure you were starting VS2010, then doing File -> Open and selecting the generated solution files ? Hth Jc On Thu, Mar 28, 2013 at 10:18 AM, Zamir Khan wrote: > I re-did this just to confirm and yes, I start with

Re: [CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread Zamir Khan
Yes, with all due respect, that is pretty basic (although I understand that there could easily be something basic going wrong here). To open the solution file, I open Visual Studio 2010 from the windows start menu and then use the File > Open > Project / Solution option to select the generated sln

Re: [CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread Zamir Khan
I re-did this just to confirm and yes, I start with a new, empty directory and choose "Visual Studio 10 Win64" as the generator and "Use default native compilers". If I choose "Visual Studio 9 Win64", I can open the solution in VS2008 without issues. -- View this message in context: http://cmak

Re: [CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread Jean-Christophe Fillion-Robin
Hi Zkhan, Do you confirm that you configured your project in an empty new directory ? Hth Jc On Thu, Mar 28, 2013 at 10:00 AM, zkhan wrote: > I am trying to migrate a fairly large project from VS 2008 to VS 2010. > However, when I use CMake to generate the "Visual Studio 10 Win64" solution >

[CMake] Conversion Wizard for VS 2010?

2013-03-28 Thread zkhan
I am trying to migrate a fairly large project from VS 2008 to VS 2010. However, when I use CMake to generate the "Visual Studio 10 Win64" solution (my target platform is Windows 7, x64) and try to open the solution in VS 2010, I am prompted by the conversion wizard, which I assume should not happen

Re: [CMake] Unable to set CMAKE_Fortran_COMPILER on Mac OS X 10.8.3

2013-03-28 Thread Bill Hoffman
On 3/27/2013 9:48 PM, William Clodius wrote: I have been developing Fortran 2003 code on a Mac system. Because Xcode comes with a very old version of gcc its Fortran compiler has poor support for newer versions of Fortran, so I have been using newer versions of gcc installed using Mac Fink, and r

[CMake] CMakeModules repository at GitHub?

2013-03-28 Thread Mateusz Loskot
Hi, To CMake maintainers, what do you think about creating new repository at https://github.com/Kitware/CMakeModules as incubator for contributed CMake modules? Here is outline of the process I'm thinking of: 1. I have developed new module for find_package 2. I submit pull request adding this