[CMake] Cygwin Boost find error

2013-04-24 Thread Lloyd
Hi, I am building a project in both Windows 7 and Cygwin. I am using boost libraries in the project and it works correctly in windows FIND_PACKAGE(Boost REQUIRED COMPONENTS unit_test_framework) When I try to configure in cygwin it returns error saying that could not find boost. From Cygwin instal

Re: [CMake] cmake script profiler

2013-04-24 Thread Bill Hoffman
On 4/24/2013 5:13 PM, Volo Zyko wrote: We have executables and libraries and a lot of custom targets (the project is organized so that we export headers during the build - not the best idea in the world) Can you consolidate them into larger custom targets that use custom commands instead? ad

[CMake] BundleUtilities and @rpath

2013-04-24 Thread Jean-Christophe Fillion-Robin
Hi Folks, I have been working on improving BundleUtilities and GetPrerequisites module so that it can be used to easily fixup a MacOSX bundle using @rpath. The set of changes I would like to propose is here: https://github.com/jcfr/CMakeBundleUtilitiesExample/compare/f7a594ffba72b8cb83df9a166d788

Re: [CMake] copy_if_different on build

2013-04-24 Thread Matthew Woehlke
On 2013-04-23 16:00, Skippy VonDrake wrote: Hmm... that is odd. I think there may be something else going on in your project that is not obvious from the above information. I wrote a quick example along the lines of what you show, and it worked fine for me. Actual CMakeLists.txt I used is attache

Re: [CMake] cmake script profiler

2013-04-24 Thread Jean-Christophe Fillion-Robin
Hi, If it turns out to be usefull for you. We could also consider creating a dedicated github project to avoid code duplication. That way you would be able to either add it as a git submodule to your project or checkout this new small project at configure time [1] Hth Jc [1] http://cmake.3232098

Re: [CMake] cmake script profiler

2013-04-24 Thread Volo Zyko
Hi Jean-Christophe, Thanks for the suggestion. We'll definitely consider it. -- Volo Zyko On Thu, Apr 25, 2013 at 12:23 AM, Jean-Christophe Fillion-Robin < jchris.filli...@kitware.com> wrote: > Hi Volo, > > If you are doing some topological sorting to build your library/executable > in the ri

Re: [CMake] cmake script profiler

2013-04-24 Thread Jean-Christophe Fillion-Robin
Hi Volo, If you are doing some topological sorting to build your library/executable in the right order. Instead of using CMake based solution, you could may be rely on a C++ approach ? This is what we are doing in CTK. We are using a small prog named ctkDependencyGraph that we build at configure t

Re: [CMake] cmake script profiler

2013-04-24 Thread Volo Zyko
We have executables and libraries and a lot of custom targets (the project is organized so that we export headers during the build - not the best idea in the world). However, I finished (more or less) the script for building time stats from the cmake's trace and we (with my colleague) found the slo

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread Gabriel Santiago
Still not working... It could be something with the installation of ITK? I used to use it within Eclipse with no problem at all... But now it seems that some .h files are "missing"... On 24 April 2013 16:38, John Drescher wrote: > On Wed, Apr 24, 2013 at 3:31 PM, Gabriel Santiago > wrote: > >

Re: [CMake] cmake script profiler

2013-04-24 Thread Bill Hoffman
On 4/24/2013 3:18 PM, Alexander Neundorf wrote: When looking at this I wouldn't know immediately where to start when trying to make it faster, probably _vtk_module_config_recurse(). set() is probably there because it is called really often. I would assume that if() is called significantly less o

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
On Wed, Apr 24, 2013 at 3:31 PM, Gabriel Santiago wrote: > Actually my CMake is 2.8.7, ITK is 3.20.1 and QT is the latest... > I believe this file should work. Although I really do not have any more time to help if it does not. project(test) cmake_minimum_required(VERSION 2.8 FATAL_ERROR) find

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread Gabriel Santiago
Actually my CMake is 2.8.7, ITK is 3.20.1 and QT is the latest... On 24 April 2013 16:29, John Drescher wrote: > On Wed, Apr 24, 2013 at 3:13 PM, Gabriel Santiago > wrote: > > I did it, but still not working... Getting the same error message as > before. > > > > Are you using very old versions

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
On Wed, Apr 24, 2013 at 3:13 PM, Gabriel Santiago wrote: > I did it, but still not working... Getting the same error message as before. > Are you using very old versions of Qt, ITK and CMake? I ask because of this line cmake_minimum_required(VERSION 2.4.0) The current version of CMake is 2.8.10

Re: [CMake] cmake script profiler

2013-04-24 Thread Alexander Neundorf
On Tuesday 23 April 2013, Bill Hoffman wrote: > On 4/23/2013 3:50 PM, Volo Zyko wrote: > > Hi all, > > > > We have a rather big project and use cmake for building it. At some > > point our cmake scripts became very slow (around 4 minutes for single > > cmake run). We are thinking now how to speed

Re: [CMake] 2.8.11-rc3 generator expression error

2013-04-24 Thread Brad King
Stephen, I am able to reproduce this with the simple test case shown below in any multi-config generator (VS IDE and Xcode). On 04/24/2013 11:27 AM, Brad King wrote: > On 04/24/2013 09:11 AM, Paul Smith wrote: >> The package I'm trying to build is here, FWIW: >> >> https://github.com/nuodb/nuodb-

Re: [CMake] cmake script profiler

2013-04-24 Thread Bill Hoffman
On 4/24/2013 3:07 PM, Volo Zyko wrote: Hi, We use Makefiles on Linux and MacOS. Windows is not our target platform. From what we see Linux is the fastest. We made few attempts of building our project on Windows in VS but it was very-very slow and definitely cmake generates too many project files

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread Gabriel Santiago
I did it, but still not working... Getting the same error message as before. On 24 April 2013 16:08, John Drescher wrote: > > I put all the folders in the CMakeLists.txt, but still not working... > > > > TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters ITKAlgorithms > > ITKNumerics IT

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
> I put all the folders in the CMakeLists.txt, but still not working... > > TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters ITKAlgorithms > ITKNumerics ITKSpatialObjetcs ITKReview ITKPatented ${QT_LIBRARIES}) > Again the missing header files problem has nothing at all to do with linking

Re: [CMake] cmake script profiler

2013-04-24 Thread Volo Zyko
Hi, We use Makefiles on Linux and MacOS. Windows is not our target platform. >From what we see Linux is the fastest. We made few attempts of building our project on Windows in VS but it was very-very slow and definitely cmake generates too many project files for VS. For us it was 500+ projects in

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread Gabriel Santiago
I put all the folders in the CMakeLists.txt, but still not working... TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters ITKAlgorithms ITKNumerics ITKSpatialObjetcs ITKReview ITKPatented ${QT_LIBRARIES}) Can you give me an example, please? Is there a way to simplify all this process? On

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
> I just did what you said, but still getting the same error message... That is expected. The problem you just mentioned is not a linking problem. You are missing several includes in your CMakeLists.txt John -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.k

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread Gabriel Santiago
I just did what you said, but still getting the same error message... On 24 April 2013 15:09, John Drescher wrote: > On Wed, Apr 24, 2013 at 2:06 PM, Jean-Christophe Fillion-Robin > wrote: > > > > Hi, > > > > What about adding: find_package(ITK REQUIRED) > > > > If you use ITKv4, you could cha

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
On Wed, Apr 24, 2013 at 2:06 PM, Jean-Christophe Fillion-Robin wrote: > > Hi, > > What about adding: find_package(ITK REQUIRED) > > If you use ITKv4, you could change: > TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters) > into > TARGET_LINK_LIBRARIES(test ${ITK_LIBRARIES}) > > As a b

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread Gabriel Santiago
Guys, I just solved the problem... But now there is another one: I can access the libraries from my Qt project, but when I try to compile, I get the following error message: /usr/local/include/InsightToolkit/BasicFilters/itkCannyEdgeDetectionImageFilter.h:20: error: itkImageToImageFilter.h: No su

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread Jean-Christophe Fillion-Robin
Hi, What about adding: find_package(ITK REQUIRED) If you use ITKv4, you could change: TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters) into TARGET_LINK_LIBRARIES(test ${ITK_LIBRARIES}) As a best practice, you could use lower case for the CMake function and command. Hth Jc On We

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
> project(test) > > cmake_minimum_required(VERSION 2.4.0) > > find_package(Qt4 REQUIRED) > > SET(qtproject_UIS mainwindow.ui) > > QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS}) > > include_directories(${CMAKE_ > CURRENT_BINARY_DIR}) > > add_executable(test ${qtproject_SRCS} ${qtproject_UIS_H} main.c

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread Gabriel Santiago
Actually, this is the content of my CMakeLists.txt: project(test) cmake_minimum_required(VERSION 2.4.0) find_package(Qt4 REQUIRED) SET(qtproject_UIS mainwindow.ui) QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS}) include_directories(${CMAKE_ CURRENT_BINARY_DIR}) add_executable(test ${qtproject_

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread Frédéric Aime
Hi, it should be useful to have a look to your CmakeList.txt file to find out, feel free to post Cheers [image: Logo] *Frédéric AIME* fa...@janua.fr Gsm: +33(0) 675 842 059 Tél:+33(0) 483 508 291 Fax: +33(0)955 260 370 http://www.janua.fr

Re: [CMake] Date issue on www.cmake.org

2013-04-24 Thread Sean McBride
On Wed, 24 Apr 2013 15:53:28 +, David Cole said: >Sure, but this is in web page text only meant to be read by human >beings, not in some parse-able data that’s actually important for anything. But human beings are confused by ambiguous dates, not just computers. ISO dates are the way to go!

Re: [CMake] Date issue on www.cmake.org

2013-04-24 Thread Alexander Neundorf
On Wednesday 24 April 2013, David Cole wrote: > Sure, but this is in web page text only meant to be read by human beings, > not in some parse-able data that’s actually important for anything. writing the name of the month usually also helps :-) Alex -- Powered by www.kitware.com Visit other Ki

Re: [CMake] 2.8.11-rc3 generator expression error (was: "Cannot restore timestamp" error on Windows)

2013-04-24 Thread John Drescher
> The purpose of -rc releases is for people to try them and report back > any regressions for building their projects. John, did you report > this anywhere earlier that we missed? > I did not. Sorry. I wanted to try to better track down the cause. I initially thought it was based on having more t

Re: [CMake] Date issue on www.cmake.org

2013-04-24 Thread David Cole
Sure, but this is in web page text only meant to be read by human beings, not in some parse-able data that’s actually important for anything. From: Alan W. Irwin Sent: ‎Wednesday‎, ‎April‎ ‎24‎, ‎2013 ‎11‎:‎20‎ ‎AM To: David Cole Cc: cmake@cmake.org; Rolf Eike Beer On 2013-04-24 12:02- Da

Re: [CMake] cmake script profiler

2013-04-24 Thread Bill Hoffman
On 4/24/2013 5:37 AM, Gregoire Aujay wrote: Hello, Are you using cmake with a Makefiles generator on Windows ? From my experiments here are my observations: -Makefiles on Windows: slow -Visual ide generator : fast -Makefiles on linux: fast I found that when there are many targets in a proj

Re: [CMake] 2.8.11-rc3 generator expression error (was: "Cannot restore timestamp" error on Windows)

2013-04-24 Thread Paul Smith
On Wed, 2013-04-24 at 17:50 +0200, Stephen Kelly wrote: > I'm not clear on whether this is intermittent or does it occur for you every > time you run cmake for the project? Every time, but I'm using the Windows Visual Studio 9 generator (32bit). That's required for the PHP version I'm using. I

Re: [CMake] 2.8.11-rc3 generator expression error (was: "Cannot restore timestamp" error on Windows)

2013-04-24 Thread Stephen Kelly
Brad King wrote: > On 04/24/2013 09:11 AM, Paul Smith wrote: >> On Wed, 2013-04-24 at 09:02 -0400, John Drescher wrote: I installed it and it ran one time and I didn't see the error, but it's intermittent so that's not definitive. Unfortunately one of my cmake files failed (later o

Re: [CMake] 2.8.11-rc3 generator expression error (was: "Cannot restore timestamp" error on Windows)

2013-04-24 Thread Brad King
On 04/24/2013 09:11 AM, Paul Smith wrote: > On Wed, 2013-04-24 at 09:02 -0400, John Drescher wrote: >>> I installed it and it ran one time and I didn't see the error, but it's >>> intermittent so that's not definitive. Unfortunately one of my cmake >>> files failed (later on; this is a cmake file

Re: [CMake] Date issue on www.cmake.org

2013-04-24 Thread Alan W. Irwin
On 2013-04-24 08:31-0400 Zack Galbreath wrote: Relevant xkcd: http://xkcd.com/1179/ Hi Zack: I got a big chuckle out of that, and it is a great response concerning ISO versus non-ISO dates! Alan __ Alan W. Irwin Astronomical research affiliation with Department of Ph

Re: [CMake] Date issue on www.cmake.org

2013-04-24 Thread Alan W. Irwin
On 2013-04-24 12:02- David Cole wrote: Hey, hey, now. Both orderings are reasonable translations of spoken word conventions into a numerical representation. Just because we say “April 24th” rather than “24th of April” doesn’t make it idiotic... Be nice. We’re sensitive over here. Hi

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread Gabriel Santiago
Ooops! Sorry! I forgot the last line! Here it is: project(test) cmake_minimum_required(VERSION 2.4.0) find_package(Qt4 REQUIRED) SET(qtproject_UIS mainwindow.ui) QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS}) include_directories(${CMAKE_CURRENT_BINARY_DIR}) add_executable(test ${qtproject_SR

Re: [CMake] "Cannot restore timestamp" error on Windows

2013-04-24 Thread Paul Smith
On Wed, 2013-04-24 at 09:11 -0400, Paul Smith wrote: > > I have seen this as well with the 2.8.11-rc releases. I am not exactly > > what causes that. > > The package I'm trying to build is here, FWIW: > > https://github.com/nuodb/nuodb-php-pdo > > The CMakeLists.txt file is here: > > https://gi

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
> Here it is: > #--- > project(test) > > cmake_minimum_required(VERSION 2.4.0) > > find_package(Qt4 REQUIRED) > > SET(qtproject_UIS mainwindow.ui) > > QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS}) > > include_directories(${CMAKE_CURRENT_BINARY_DIR}) > > add_executable(test ${qtproject_SRCS} ${qtpro

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread Gabriel Santiago
Here it is: #--- project(test) cmake_minimum_required(VERSION 2.4.0) find_package(Qt4 REQUIRED) SET(qtproject_UIS mainwindow.ui) QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS}) include_directories(${CMAKE_CURRENT_BINARY_DIR}) add_executable(test ${qtproject_SRCS} ${qtproject_UIS_H}) #--- On

[CMake] MINGW and strip .dll.a files

2013-04-24 Thread Gregoire Aujay
Hello, I am trying to package a stripped library built with MINGW. When I activate strip during install or pack, I get link error (unresolved symbols) when using this library. When I strip using "-s" option, everything is fine. The difference is that my .dll.a is smaller when I use CMake strip

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread David Doria
On Tue, Apr 23, 2013 at 5:03 PM, Gabriel Santiago wrote: > Dear all, > > I am trying to create an user interface for some medical image processing > using Qt (it must be Qt) and I want to use ITK to do some of the image > processing. > > In order to create the CMakeLists.txt, I am following this t

Re: [CMake] "Cannot restore timestamp" error on Windows

2013-04-24 Thread Paul Smith
On Wed, 2013-04-24 at 09:02 -0400, John Drescher wrote: > > I installed it and it ran one time and I didn't see the error, but it's > > intermittent so that's not definitive. Unfortunately one of my cmake > > files failed (later on; this is a cmake file from a smaller > > sub-project): > > > >

Re: [CMake] "Cannot restore timestamp" error on Windows

2013-04-24 Thread John Drescher
> I installed it and it ran one time and I didn't see the error, but it's > intermittent so that's not definitive. Unfortunately one of my cmake > files failed (later on; this is a cmake file from a smaller > sub-project): > > CMake Error at CMakeLists.txt:190 (TARGET_LINK_LIBRARIES): >

Re: [CMake] "Cannot restore timestamp" error on Windows

2013-04-24 Thread Paul Smith
On Tue, 2013-04-23 at 21:50 -0400, Bill Hoffman wrote: > On 4/23/2013 8:57 PM, J Decker wrote: > > I've seen this also, and it is intermittant; once upon a time there were > > several AV programs that held new files open too long, so subsequent > > accesses would fail... sorry to be no help > Can y

Re: [CMake] "Cannot restore timestamp" error on Windows

2013-04-24 Thread Brad King
On Sun, Apr 21, 2013 at 12:32 AM, Paul Smith wrote: > I looked up this message and found another report of this error which > was purported to be fixed in cmake by this patch: > > commit 2dc17f88dd2de900154f153f521b803ec9b7c377 > Author: Brad King > Date: 2013-02-12 10:46:22 -0500 For referenc

Re: [CMake] Date issue on www.cmake.org

2013-04-24 Thread Zack Galbreath
Relevant xkcd: http://xkcd.com/1179/ -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubsc

Re: [CMake] Date issue on www.cmake.org

2013-04-24 Thread David Cole
Hey, hey, now. Both orderings are reasonable translations of spoken word conventions into a numerical representation. Just because we say “April 24th” rather than “24th of April” doesn’t make it idiotic... Be nice. We’re sensitive over here. 😉 From: Rolf Eike Beer Sent: ‎Wednesday‎, ‎

Re: [CMake] Date issue on www.cmake.org

2013-04-24 Thread Rolf Eike Beer
Am 24.04.2013 11:49, schrieb Hendrik Sattler: Hi, seems the time string in the news section need a fix: 11.07.2012 CMake 2.8.10 Just Released 08.09.2012 CMake 2.8.9 is Now Available! 07.18.2012 Kitware Announces New Fall Courses 04.19.2012 CMake 2.8.8 is Now Available 03.02.2012 CDash 2.0.2 Now

Re: [CMake] cmake script profiler

2013-04-24 Thread Gregoire Aujay
Hello, Are you using cmake with a Makefiles generator on Windows ? >From my experiments here are my observations: - Makefiles on Windows: slow - Visual ide generator : fast - Makefiles on linux: fast I found that when there are many targets in a project, cmake has t

[CMake] Date issue on www.cmake.org

2013-04-24 Thread Hendrik Sattler
Hi, seems the time string in the news section need a fix: 11.07.2012 CMake 2.8.10 Just Released 08.09.2012 CMake 2.8.9 is Now Available! 07.18.2012 Kitware Announces New Fall Courses 04.19.2012 CMake 2.8.8 is Now Available 03.02.2012 CDash 2.0.2 Now Available The dotted date notation with the ye