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

2013-04-23 Thread Bill Hoffman
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 you try the current RC and see if it is fixed in that version of CMak

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

2013-04-23 Thread J Decker
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 On Tue, Apr 23, 2013 at 5:34 PM, Paul Smith wrote: > On Tue, 2013-04-23 at 15:54 -0700, J Decker wrote: > > do

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

2013-04-23 Thread Paul Smith
On Tue, 2013-04-23 at 15:54 -0700, J Decker wrote: > do you have antivirus software that you can disable? No, there's no special antivirus software on these build servers. It's hard to imagine what kind of issue antivirus software would cause, that would be so intermittent. Our builds perform t

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

2013-04-23 Thread J Decker
do you have antivirus software that you can disable? On Tue, Apr 23, 2013 at 2:43 PM, Paul Smith wrote: > On Sun, 2013-04-21 at 00:32 -0400, Paul Smith wrote: > > Hi all; I'm getting this error most, but not every, time I run cmake on > > my main Windows build system: > > > > 28>CUSTOMBUILD : C

Re: [CMake] cmake script profiler

2013-04-23 Thread Volo Zyko
On Wed, Apr 24, 2013 at 12:07 AM, Bill Hoffman wrote: > That's funny. I was just playing around with adding a profile option. My approach was to sum up all the time spent in each function. It does not have a call stack but, should give you an idea of where it is spending the bulk of the time.

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

2013-04-23 Thread Paul Smith
On Sun, 2013-04-21 at 00:32 -0400, Paul Smith wrote: > Hi all; I'm getting this error most, but not every, time I run cmake on > my main Windows build system: > > 28>CUSTOMBUILD : CMake error : Cannot restore timestamp > D:\build-dir\MASTER-BRANCHES30-WINDOWS\BaseTest\CMakeFiles\generate.stamp >

Re: [CMake] Sublime Text 2

2013-04-23 Thread Andrew Maclean
I have done that and I am using it now. Thanks Andrew On Tue, Apr 23, 2013 at 10:51 PM, Robert Maynard wrote: > I use https://github.com/zyxar/Sublime-CMakeLists for my syntax > highlighting. If you install sublime package control ( > http://wbond.net/sublime_packages/package_control ) you

Re: [CMake] cmake script profiler

2013-04-23 Thread Jean-Christophe Fillion-Robin
Hi Bill, Would it be possible to share the topic implementing your profiling code ? By default, summing the time spent in each functions makes sens. That said, it would also be nice to have the option of having detailed trace info, coupled with convenient code like "message("START_PROFILING") an

[CMake] QT, CMake and ITK

2013-04-23 Thread Gabriel Santiago
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 tutorial: http://qtnode.net/wiki/Qt4_with_cmake Everything goes fine

Re: [CMake] CPack/NSIS multiple component intall location

2013-04-23 Thread Romuald Delmont
Hi I finally manage this by building 2 components: Data (obviously for Data) and Unspecified for everything else. Tell CPACK to not include Data component, using SET(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_BINARY_DIR};${CMAKE_PROJECT_NAME};Unspecified;/") And finally package Data component manuall

Re: [CMake] cmake script profiler

2013-04-23 Thread Bill Hoffman
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 up it. Searching the web and this list didn't give any results. It

Re: [CMake] CPack/NSIS multiple component intall location

2013-04-23 Thread Eric Noulard
2013/4/23 Romuald Delmont : > Hi Erik > > This is a simplified view of my project: > > Root CMakeList: > > PROJECT (Foo) > > FOREACH( mysubdirs > Apps > Data > ) > > SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Foo") > SET(CPACK_NSIS_COMPONENT_INSTALL ON) > include(CPACK) > > > Apps CMakeList: > > set(

Re: [CMake] copy_if_different on build

2013-04-23 Thread Skippy VonDrake
> 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 attached. (The foo.c can contain any compilin

[CMake] cmake script profiler

2013-04-23 Thread Volo Zyko
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 up it. Searching the web and this list didn't give any results. It looks like there is no such thing as pro

Re: [CMake] CPack/NSIS multiple component intall location

2013-04-23 Thread Romuald Delmont
Hi Erik This is a simplified view of my project: Root CMakeList: PROJECT (Foo) FOREACH( mysubdirs Apps Data ) SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Foo") SET(CPACK_NSIS_COMPONENT_INSTALL ON) include(CPACK) Apps CMakeList: set(TARGET_NAME Apps) # Build some stuff ... install(TARGETS App

Re: [CMake] CPack/NSIS multiple component intall location

2013-04-23 Thread Eric Noulard
2013/4/23 Romuald Delmont : > Hi All > > I'm packaging an application with CMake/Cpack/NSIS and it's going pretty > well except for one point. > > I have a core component with executables and a data component. Both are > built by CMake and have an INSTALL command. > Install target gives me 2 direct

Re: [CMake] copy_if_different on build

2013-04-23 Thread Matthew Woehlke
Please keep this on list so that others may contribute/benefit. Thanks. On 2013-04-23 10:43, Skippy VonDrake wrote: Hmm... yes, I'm not sure if add_dependencies can be used to add a file dependency to a target (the documentation only talks about adding other targets as dependencies). Usually th

Re: [CMake] CPack Generator for the Mac App Store

2013-04-23 Thread Jean-Christophe Fillion-Robin
Hi Folks, As far as I remember, there is an issue with the "install(CODE | SCRIPT ..." that prevent it from being executed last. As a workaround, something like this could be done: https://github.com/Slicer/Slicer/blob/32979bf79bc2db503bbbe4b29082d5dd97411ebb/CMake/SlicerCPack.cmake#L61-66 See ht

Re: [CMake] CPack Generator for the Mac App Store

2013-04-23 Thread Brian Milco
On Tue, Apr 23, 2013 at 7:26 AM, Clinton Stimpson wrote: > > As a cmake module, it could be used at packaging > time by having a install(CODE ...) in the CMakeLists.txt file. > Where would you call the install(CODE ...)? I wrote a shell script to do the signing first, and I tried to use install(C

[CMake] CPack/NSIS multiple component intall location

2013-04-23 Thread Romuald Delmont
Hi All I'm packaging an application with CMake/Cpack/NSIS and it's going pretty well except for one point. I have a core component with executables and a data component. Both are built by CMake and have an INSTALL command. Install target gives me 2 directories (Apps and Data) in the CMAKE_INSTALL

Re: [CMake] CPack Generator for the Mac App Store

2013-04-23 Thread Clinton Stimpson
On Monday, April 22, 2013 08:22:50 AM Brian Milco wrote: > > Does this workflow in your MacAppStore generator include anything that > > prevents making a .pkg for OS X Installer? > > From the stackoverlfow link below, the person says App Store submissions > > follow different rules. Do you know wh

Re: [CMake] Sublime Text 2

2013-04-23 Thread Robert Maynard
I use https://github.com/zyxar/Sublime-CMakeLists for my syntax highlighting. If you install sublime package control ( http://wbond.net/sublime_packages/package_control ) you can easily install and remove other packages. On Tue, Apr 23, 2013 at 4:00 AM, Andrew Maclean wrote: > I am a vim user, t

Re: [CMake] Excluding targets from a solution config in a Visual Studio build

2013-04-23 Thread Petr Kmoch
Hi Alessio. There is a target property EXCLUDE_FROM_DEFAULT_BUILD. If you set this on a target to true, the target will be removed from "Build Solution." 2.8.11 should introduce a per-config variant of this property, EXCLUDE_FROM_DEFAULT_BUILD_. Petr On Mon, Apr 22, 2013 at 7:15 PM, Alessio wr

Re: [CMake] Sublime Text 2

2013-04-23 Thread Andrew Maclean
I am a vim user, this particular editor can open whole folders of files etc. and presents the same interface across Windows, Linux and OS-X. It seems to be very fast (subjective!) and easily customisable. I am currently using vim, gedit, kedit, TexMate so this is a useful addition! Thanks Andr