Re: [cmake-developers] find_package without REQUIRED can cause fatal error now

2013-04-24 Thread Chris
chris developerchris@... writes: I should add the commandline for this build emerge debug: cmake -G MinGW Makefiles -DBUILD_doc=OFF -DCMAKE_INSTALL_PREFIX=r:/ -DCMAKE_INCLUDE_PATH=r:/include -DCMAKE_LIBRARY_PATH=r:/lib -DCMAKE_PREFIX_PATH=r:/ -DCMAKE_BUILD_TYPE=RelWithDebInfo q:\kate emerge

Re: [cmake-developers] Setting target properties before the target is defined ?

2013-04-24 Thread Stephen Kelly
Brad King brad.king@... writes: Steve, I think this may fall under your expertise now. The goal is to generate a nice error message when an imported target's link interface depends on other targets that should have been imported but have not been. Currently we just get a build-time

[cmake-developers] [CMake 0014110]: Valgrind output should be collected via output file

2013-04-24 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://cmake.org/Bug/view.php?id=14110 == Reported By:Rolf Eike Beer Assigned To:

Re: [cmake-developers] adding --sysroot (was: Building with Qt for the Raspberry Pi with CMake)

2013-04-24 Thread Brad King
On 04/24/2013 08:38 AM, Stephen Kelly wrote: I pushed a set-sysroot branch implementing this to my clone. This actually also makes it possible to cross-compile for android without forcing the compiler. That looks like a good start. The --sysroot flag should be looked up through a platform

Re: [cmake-developers] find_package without REQUIRED can cause fatal error now

2013-04-24 Thread Brad King
On 04/24/2013 02:45 AM, chris wrote: when building packages I get errors like the following... CMake Error at /lib/cmake/KActivities/KActivitiesLibraryTargets.cmake:68 (message): [snip] Call Stack (most recent call first): /lib/cmake/KActivities/KActivitiesConfig.cmake:18 (include)

Re: [cmake-developers] Setting target properties before the target is defined ?

2013-04-24 Thread Brad King
On 04/24/2013 07:14 AM, Stephen Kelly wrote: It's becoming conventional to use a namespace like NS:: for imported targets. Would it be possible to assume that if linking to something which has double colons, then it must be an imported target, and if we can't find such an imported target, to

Re: [cmake-developers] Setting target properties before the target is defined ?

2013-04-24 Thread Stephen Kelly
Brad King wrote: For makefile generators and xcode it is not possible to use create non-imported targets in a buildsystem. On Windows it doesn't seem to be possible either (the : is mistaken for a drive delimiter). It does currently work with Ninja though, so a policy may be needed if it's a

Re: [cmake-developers] adding --sysroot

2013-04-24 Thread Stephen Kelly
Brad King wrote: On 04/24/2013 08:38 AM, Stephen Kelly wrote: I pushed a set-sysroot branch implementing this to my clone. This actually also makes it possible to cross-compile for android without forcing the compiler. That looks like a good start. The --sysroot flag should be looked up

Re: [cmake-developers] find_package without REQUIRED can cause fatal error now

2013-04-24 Thread Brad King
On 04/24/2013 09:29 AM, DeveloperChris wrote: I had added some message lines to try and work out how it functions part of the log snippet I actually cut out was the following... | ||-- Found automoc4: R:/bin/automoc4.exe|| ||-- the import prefix derived from

Re: [cmake-developers] 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:

Re: [cmake-developers] Generating files at generate-time

2013-04-24 Thread Brad King
On 04/23/2013 03:07 PM, Stephen Kelly wrote: file(EVALUATE ${CMAKE_CURRENT_SOURCE_DIR}/input.txt ${CMAKE_CURRENT_BINARY_DIR}/output.txt ) [snip] file(EVALUATE ${CMAKE_CURRENT_BINARY_DIR}/input.txt ${CMAKE_CURRENT_BINARY_DIR}/output_$CONFIGURATION.txt

Re: [cmake-developers] Arbitrary content in JOIN genex separator

2013-04-24 Thread Brad King
On 04/23/2013 03:26 PM, Stephen Kelly wrote: The $JOIN branch is almost ready, but I thought something worth bringing up is the use of a comma as a separator. [snip] $JOIN:one;two;three,, # results in one,two,three Do you think that's more or less confusing? Should I implement it? I think

Re: [cmake-developers] find_package without REQUIRED can cause fatal error now

2013-04-24 Thread Alexander Neundorf
On Wednesday 24 April 2013, Brad King wrote: On 04/24/2013 09:29 AM, DeveloperChris wrote: I had added some message lines to try and work out how it functions part of the log snippet I actually cut out was the following... ||-- Found automoc4: R:/bin/automoc4.exe|| ||-- the import

[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

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

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] 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 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

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 p...@mad-scientist.net 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 brad.k...@kitware.com Date:

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 you try

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 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): CMake

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread David Doria
On Tue, Apr 23, 2013 at 5:03 PM, Gabriel Santiago santiago.eletr...@gmail.com 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,

[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 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

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} ${qtproject_UIS_H})

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:

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

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] 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

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 from a

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 on; this is a

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] 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

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

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] 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] http://www.janua.fr/images/LogoSignature.gif *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] 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.cpp)

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

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

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 dresche...@gmail.com wrote: On Wed, Apr 24, 2013 at 2:06 PM, Jean-Christophe Fillion-Robin jchris.filli...@kitware.com wrote: Hi, What about adding: find_package(ITK REQUIRED)

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?

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 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] 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 dresche...@gmail.com wrote: I put all the folders in the CMakeLists.txt, but still not working... TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters ITKAlgorithms

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

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:

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 up it.

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
On Wed, Apr 24, 2013 at 3:13 PM, Gabriel Santiago santiago.eletr...@gmail.com 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

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 dresche...@gmail.com wrote: On Wed, Apr 24, 2013 at 3:13 PM, Gabriel Santiago santiago.eletr...@gmail.com wrote: I did it, but still not working... Getting the same error message as

Re: [CMake] QT, CMake and ITK

2013-04-24 Thread John Drescher
On Wed, Apr 24, 2013 at 3:31 PM, Gabriel Santiago santiago.eletr...@gmail.com 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)

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

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 dresche...@gmail.com wrote: On Wed, Apr 24, 2013 at 3:31 PM, Gabriel

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

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

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 right

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]

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

[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:

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?

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2819-g4cf05ba

2013-04-24 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 4cf05ba7c48f69beff60ee682d0cd52008e65e32 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.10.2-1005-g78185f5

2013-04-24 Thread Kitware Robot
Stamp diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index e9c4696..8ded30f 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -2,5 +2,5 @@ set(CMake_VERSION_MAJOR 2) set(CMake_VERSION_MINOR 8) set(CMake_VERSION_PATCH 10) -set(CMake_VERSION_TWEAK 20130424