Re: [CMake] can I install subdirs matching a REGEX ?

2012-12-12 Thread Petr Kmoch
Hi Martin, if you only want to install files which match something, you need to add FILES_MATCHING to the insall() command (before the first pattern/regex), like this: install(DIRECTORY start/ DESTINATION images FILES_MATCHING REGEX .*/\\.Images/.*) (I've also added backslashes, since you probab

Re: [CMake] Why is XXX_INCLUDE_DIRS plural and should it be deep?

2012-12-12 Thread Rolf Eike Beer
esatel wrote: > 2. The other sets a similar variable but then does find_package on HDF5 and > loads the dependencies into NetCDF_INCLUDE_DIRS and NetCDF_LIBRARIES. > > This design (2) cascades. FindHDF5.cmake represents a similar decision about > whether to find_package its dependencies like the

[CMake] Why is XXX_INCLUDE_DIRS plural and should it be deep?

2012-12-12 Thread esatel
Hi all, I am trying to adapt an existing FindNetCDF.cmake file to work with NetCDF 4.2. I have read the Modules/Readme.txt but I am still a little unclear to the best approach in my case. In 4.2 the Fortran bindings and C bindings are not necessarily installed in the same place. One motive for Net

Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-12 Thread Stephen Kelly
David Cole wrote: > Doesn't seem like "return false;" is quite the right implementation > for vtkQtView::SaveImage... > > ;-) > I can't get anything past you :). Though in my defense the commit message only says it builds :). I found another issue with a QtNetwork include, so an updated versi

Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-12 Thread David Cole
Doesn't seem like "return false;" is quite the right implementation for vtkQtView::SaveImage... ;-) On Wed, Dec 12, 2012 at 12:41 PM, John Drescher wrote: > > I didn't try running any examples, but I also ported it to Qt 5. My patch > > for that is attached. John, the patch for older VTK versi

Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-12 Thread John Drescher
> I didn't try running any examples, but I also ported it to Qt 5. My patch > for that is attached. John, the patch for older VTK versions should be > similar if you wish to try it. > I will see what I can do this weekend. Thanks, John -- Powered by www.kitware.com Visit other Kitware open-sour

Re: [CMake] Testing Qt 5 RC 1 CMake files

2012-12-12 Thread Stephen Kelly
Clinton Stimpson wrote: > > I took a peek at building it earlier with Qt5. Great, thanks for that. > > I started making changes and one of the more surprising ones was that > #include > pulled in my Qt4 QWidget from /usr/include/QtGui/QWidget. > Instead of Qt5's QtWidgets/QWidget. That led t

Re: [CMake] Inconsistent CMake Warning on policy CMP0012

2012-12-12 Thread David Cole
Only the "special" strings cause the warning. Things like "Y" "y" "N" "n" "true" "0" "1" "on" "off" etc. This is correct behavior and what the policy is about. It's not about strings in general, but about the specific strings that are used for boolean constant aliases... On Wed, Dec 12, 2012 at

[CMake] FindThreads: GCC & pthreads bug?

2012-12-12 Thread Marcel Loose
Hi all, I was browsing the FindThreads.cmake code and was wondering whether it is doing the right thing when using GCC and pthreads. The thing is that it first tries to locate the threads library and only if it *cannot* find it, tries the command-line option "-pthread". The proper way to te

[CMake] Inconsistent CMake Warning on policy CMP0012

2012-12-12 Thread Marcel Loose
Hi all, I noticed that, when using a string expression in an IF() statement -- which you obviously shouldn't do, but I was just playing around -- CMake sometimes generates a developer warning CMP0012. Whether it does that or not depends on the string your using. The following file $ cat str

Re: [CMake] CC, CXX (& Fortran) compiler version - CMake macros wanted

2012-12-12 Thread Brad King
On 12/11/2012 04:20 PM, Ilias Miroslav wrote: > I appreciate your efforts resulting into the introduction of > the CMAKE_[C|CXX]_COMPILER_VERSION variables Thanks. > However, I would need also the CMAKE_Fortran_COMPILER_VERSION variable. It was not left out by accident. It cannot be computed u

Re: [CMake] [vtkusers] Fwd: CMAKE_MAKE_PROGRAM is not set - Win7 and Visual Studio 10

2012-12-12 Thread John Drescher
> The question is: what is the location of the make program? > > If I remember correctly, on Windows XP, I did not have to install MinGW to > compile VTK. Just Visual Studio Express was required. > > Do I have to install MinGW? Not unless you want to move your development to MinGW. >Or is it prov

Re: [CMake] CMAKE_MAKE_PROGRAM is not set - Win7 and Visual Studio 10

2012-12-12 Thread Andreas Haferburg
On 05.12.2012 14:21, Benoît Thiébault wrote: "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 10.0/Common7/IDE" "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio10.0/Common7/IDE" "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 10/Common7/IDE" "$ENV{ProgramFiles} (x86)/Microsoft Vis

Re: [CMake] [vtkusers] Fwd: CMAKE_MAKE_PROGRAM is not set - Win7 and Visual Studio 10

2012-12-12 Thread John Drescher
On Wed, Dec 12, 2012 at 4:03 AM, Benoît Thiébault wrote: > Hi everyone, > > I sent this question on CMake mailing list a week ago and never had any > answer. > > As it deals with compiling VTK, I'm thinking maybe some of you have a > solution. > Can't you specify the location of the make program

Re: [CMake] linking static library.

2012-12-12 Thread Łukasz Tasz
Does somebody has some ideas? Can I enforce cmake to make library as a one 'shoot' - single command line? thanks in advance Lukasz Łukasz Tasz 2012/12/5 Łukasz Tasz : > Hi all, > > I have a problem with making static library. > There is behaviour which is not clear for me. > > I have long list o