Re: [CMake] Package installation conundrum

2012-05-08 Thread Michael Wild
On 05/08/2012 11:13 PM, Dave Abrahams wrote: > > on Tue May 08 2012, Alexander Neundorf > wrote: > >> On Tuesday 08 May 2012, Dave Abrahams wrote: >> >>> Here's another one! >>> >>> Scenario: >>> >>> * I am running CMake under 0install to build and install libraries >>> >>> * Each library build

Re: [CMake] Package installation conundrum

2012-05-08 Thread Dave Abrahams
on Tue May 08 2012, Alexander Neundorf wrote: > On Tuesday 08 May 2012, Dave Abrahams wrote: > >> Here's another one! >> >> Scenario: >> >> * I am running CMake under 0install to build and install libraries >> >> * Each library builds a package SomePackage for the library binaries >> and anothe

Re: [CMake] Moving large MSVS projects to CUDA

2012-05-08 Thread James Bigler
On Mon, May 7, 2012 at 4:04 PM, Ming wrote: > ** >> > *By design, CMake should detect configuration changes and reconfigure > before the build starts. The VS plugin was designed to provide a single > dialog box that would allow for reloading of the entire solution with a > single click rath

Re: [CMake] Package installation conundrum

2012-05-08 Thread Alexander Neundorf
On Tuesday 08 May 2012, Dave Abrahams wrote: > Here's another one! > > Scenario: > > * I am running CMake under 0install to build and install libraries > > * Each library builds a package SomePackage for the library binaries > and another package SomePackage-dev for the library headers (and >

[CMake] FindPostgreSQL.cmake doesn't find headers and libraries

2012-05-08 Thread Mauricio Klein
Hello everybody! I'm trying to make CMake find the following files from PostgreSQL package: - libpq-fe.h - library pq (i mean, -lpq) I'm using the Find script attached to this e-mail, but neither header and libraries are found. I'm sure the both are installed. Taking a look at the script, i saw

Re: [CMake] building and running tests with one command

2012-05-08 Thread David Cole
On Mon, May 7, 2012 at 7:27 PM, Leif Walsh wrote: > Hi, > > Is there a make, cmake, or ctest way to rebuild the dependencies of a > test if needed, and then run the test? > No -- there is no knowledge in the generated build system about what a test depends on. The only thing add_test does is gene

Re: [CMake] CPack doesn't recognize custom templates

2012-05-08 Thread norulez
It is only a copy from the original. It doesn't work in windows xp in general. Best Regards Am 08.05.2012 um 13:51 schrieb Eric Noulard : > 2012/5/8 : >> There is no difference with your command. It still uses the NSIS.template.in >> file from the CMake installation. > > Are there any differe

[CMake] Accessing the CMAKE_CXX_FLAGS that a project was built with?

2012-05-08 Thread David Doria
I use ITK in my project. I want to determine if the ITK build that the user has selected to use (via cmake ITK_DIR) has been built with a particular compiler flag, namely -DCMAKE_CXX_FLAGS=-std=gnu++0x Is there a way to do this via cmake in my project? David -- Powered by www.kitware.com Visi

Re: [CMake] CPack doesn't recognize custom templates

2012-05-08 Thread Eric Noulard
2012/5/8 : > There is no difference with your command. It still uses the NSIS.template.in > file from the CMake installation. Are there any difference between the 2 CPackConfig.cmake files ? WinXP failing case vs Win7 working case? Does the ${CMAKE_SOURCE_DIR}/cmake/NSIS.template.in file has an

Re: [CMake] CPack doesn't recognize custom templates

2012-05-08 Thread norulez
There is no difference with your command. It still uses the NSIS.template.in file from the CMake installation. Yes I tried the configurations in new build directories such as build1 ... buildn. Am 08.05.2012 um 11:52 schrieb Eric Noulard : > 2012/5/8 : >> I use CMake 2.8.7 from the zip archi

Re: [CMake] CPack doesn't recognize custom templates

2012-05-08 Thread Eric Noulard
2012/5/8 : > I use CMake 2.8.7 from the zip archive. > Out of source builds are the defaults, so yes I use out of source builds. Good. But did you try with fresh new (empty) build tree AND fresh new checked-out source tree? > I tried  CMP0017 with NEW and with OLD, but there is no difference, no

Re: [CMake] speeding up FIND_PACKAGE(Qt4 ...)

2012-05-08 Thread Andreas Pakulat
Hi, On Mon, May 7, 2012 at 10:00 PM, Miller Henry wrote: > > We have a cmake based project where cmake runtime is becoming a problem: > everytime a CMakeLists.txt changes the build takes an extra 40-50 seconds. > Our main CMakeLists.txt contains a lot of ADD_SUBDIRECTORY (and little > else). Mo

Re: [CMake] CPack doesn't recognize custom templates

2012-05-08 Thread Eric Noulard
2012/5/8 : > Hello, > > I had a custom NSIS template under ${CMAKE_SOURCE_DIR}/cmake > > Then I added those path to CMAKE_MODULE_PATH. But my custom template gets > never called. > If I run cpack --verbose I can see that cpack uses the template from the > CMake installation. Which version of CM

[CMake] CPack doesn't recognize custom templates

2012-05-08 Thread norulez
Hello, I had a custom NSIS template under ${CMAKE_SOURCE_DIR}/cmake Then I added those path to CMAKE_MODULE_PATH. But my custom template gets never called. If I run cpack --verbose I can see that cpack uses the template from the CMake installation. The strange thing is, that it would work on W