[cmake-developers] [CMake 0012110]: CodeBlocks project with full paths

2011-04-20 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=12110 == Reported By:oreja80 Assigned To:

Re: [cmake-developers] Qt Bundle Utilities/Packaging

2011-04-20 Thread Clinton Stimpson
On Wednesday, April 20, 2011 05:18:41 am Mike McQuaid wrote: On 7 April 2011 18:17, Clinton Stimpson clin...@elemtech.com wrote: I think you should *always* write out a qt.conf file. The Qt libraries have hardcoded paths (used if there is no qt.conf file) and if the target machine has a Qt

Re: [cmake-developers] Better Eclipse CDT support

2011-04-20 Thread Alexander Neundorf
On Wednesday 20 April 2011, Oliver Buchtala wrote: Hi Alex, ... What would you expect there ? Some structure that gives me acces to the sources of the targets. I suppose, you try to achieve this with sub-projects, but it does not work properly in my case. How does it work not properly ?

Re: [CMake] Post-Build commands on custom targets are always executed?

2011-04-20 Thread Oliver Buchtala
Am 19.04.2011 16:10, schrieb David Cole: On Mon, Apr 18, 2011 at 11:22 PM, Michael Hertling mhertl...@online.de mailto:mhertl...@online.de wrote: On 04/19/2011 02:17 AM, Oliver Buchtala wrote: Am 18.04.2011 06:58, schrieb Michael Hertling: On 04/16/2011 12:05 AM, Oliver

Re: [CMake] RPATH on Mac

2011-04-20 Thread tog
Hi, Yes I have used the references you send me i.e. the link to the QtTest project. This project is nevertheless simpler than mine since only an executable is generated - no libraries (excepted those taken from Qt). If my understanding is correct - FIXUP_BUNDLE shall be used after the bundle is

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread tog
Some small progress after using INSTALL(CODE ...) but still an error. (Small) code is still there https://github.com/galleon/CMakeOSX for those interested. Any idea what is going wrong ? Best Regards Guillaume -- 4/8: copying '/Users/alleon/PROJECTS/CMakeOSX_build/foo/libfoo.1.dylib' --

[CMake] Changing compiler

2011-04-20 Thread David Doria
I am trying to build ITK with a non-system-standard compiler. I did so by running: ccmake ../../src/ITK/ -DCMAKE_CXX_COMPILER=/home/doriad/src/gcc-4.5.2/bin/gcc/g++ However, I get: --- CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE): The C++

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread David Cole
On Tue, Apr 19, 2011 at 5:44 PM, James Bigler jamesbig...@gmail.com wrote: On Tue, Apr 12, 2011 at 2:24 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 4/12/2011 4:13 PM, David Cole wrote: Does somebody have reproducible steps to get to the point where CMAKE_SIZEOF_VOID_P disappears??

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread David Cole
The error message tells you what to do: * Install or copy the item into the bundle before calling fixup_bundle* That means that libplugin.so must be underneath /tmp/example/main.app before you call fixup_bundle. (Because it's a plugin, it will not appear in any file's otool -L output, so it has

Re: [CMake] Changing compiler

2011-04-20 Thread David Cole
If you are setting the CXX compiler, you should also probably be setting the C compiler. I always use environment variables to do this: export CC=/home/doriad/src/gcc-4.5.2/bin/gcc/gcc export CXX=/home/doriad/src/gcc-4.5.2/bin/gcc/g++ ccmake ../../src/ITK If that still doesn't work, then

Re: [CMake] Changing compiler

2011-04-20 Thread David Doria
On Wed, Apr 20, 2011 at 9:04 AM, David Cole david.c...@kitware.com wrote: If you are setting the CXX compiler, you should also probably be setting the C compiler. I always use environment variables to do this:   export CC=/home/doriad/src/gcc-4.5.2/bin/gcc/gcc   export

Re: [CMake] Changing compiler

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 9:43 AM, David Doria daviddo...@gmail.com wrote: On Wed, Apr 20, 2011 at 9:04 AM, David Cole david.c...@kitware.com wrote: If you are setting the CXX compiler, you should also probably be setting the C compiler. I always use environment variables to do this:

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread Michael Jackson
On Apr 20, 2011, at 8:55 AM, David Cole wrote: On Tue, Apr 19, 2011 at 5:44 PM, James Bigler jamesbig...@gmail.com wrote: On Tue, Apr 12, 2011 at 2:24 PM, Bill Hoffman bill.hoff...@kitware.com wrote: On 4/12/2011 4:13 PM, David Cole wrote: Does somebody have reproducible steps to get

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread tog
Well I thought that the BUNDLE line in my INSTALL command would take care of that. Actually it is the case for the other 2 libs. What is wrong with that one ? I guess I am missing something with those plugin libraries ... ADD_LIBRARY(plugin MODULE plugin.cpp) INSTALL(TARGETS plugin

Re: [CMake] Post-Build commands on custom targets are always executed?

2011-04-20 Thread Michael Hertling
On 04/20/2011 08:16 AM, Oliver Buchtala wrote: Am 19.04.2011 16:10, schrieb David Cole: On Mon, Apr 18, 2011 at 11:22 PM, Michael Hertling mhertl...@online.de mailto:mhertl...@online.de wrote: On 04/19/2011 02:17 AM, Oliver Buchtala wrote: Am 18.04.2011 06:58, schrieb Michael

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 10:40 AM, tog guillaume.all...@gmail.com wrote: Well I thought that the BUNDLE line in my INSTALL command would take care of that. Actually it is the case for the other 2 libs. The other 2 libs show up in the following output: otool -L your_main_executable The plugin

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread tog
Yes David I fully agree with you I am not arguing on the fact that the lib cannot be retrieved from the exe - obviously it cannot and this is why the lib is a parameter of fixbundle I am just arguing that I would expect this block: INSTALL(TARGETS plugin BUNDLE DESTINATION . COMPONENT

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread Michael Jackson
On Apr 20, 2011, at 10:55 AM, David Cole wrote: What is wrong with that one ? Nothing is wrong with it, but there is no link from the app to the plugin, so fixup_bundle cannot determine that it's necessary and automatically pull it in. The plugin, from the app's point of view, is

Re: [CMake] Use of ADD_CUSTOM_COMMAND

2011-04-20 Thread Michael Hertling
On 04/20/2011 05:40 AM, Fraser Hutchison wrote: Hi Gib, Try the following: GET_TARGET_PROPERTY(FUBAR_EXE fubar LOCATION) ADD_CUSTOM_COMMAND(TARGET fubar POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${FUBAR_EXE} somepath) Cheers, Fraser. Don't use the obsolete LOCATION property

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 11:17 AM, Michael Jackson mike.jack...@bluequartz.net wrote: On Apr 20, 2011, at 10:55 AM, David Cole wrote: What is wrong with that one ? Nothing is wrong with it, but there is no link from the app to the plugin, so fixup_bundle cannot determine that it's

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread Michael Jackson
___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio On Apr 20, 2011, at 11:25 AM, David Cole wrote: On Wed, Apr 20, 2011 at

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread j s
If it helps, I always configure from a clean directory.  This script is written in bash for cygwin, but I'm sure it would be easy enough to do from some other script: CMAKE=/cygdrive/C/Program\ Files\ \(x86\)/CMake\ 2.8/bin/cmake.exe mkdir win32 (cd win32; $CMAKE -G Visual Studio 10 ..) mkdir

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread Michael Jackson
I normally do this also BUT sometimes I try to short circuit the process because I just want to regenerate the Solution/Projects and not have to wait for a complete CMake configuration which takes a really long time on some project due to the number of tests that need to be performed. At the

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread j s
On Wed, Apr 20, 2011 at 10:55 AM, Michael Jackson mike.jack...@bluequartz.net wrote: I normally do this also BUT sometimes I try to short circuit the process because I just want to regenerate the Solution/Projects and not have to wait for a complete CMake configuration which takes a really

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 11:38 AM, Michael Jackson mike.jack...@bluequartz.net wrote: ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 12:05 PM, j s j.s4...@gmail.com wrote: On Wed, Apr 20, 2011 at 10:55 AM, Michael Jackson mike.jack...@bluequartz.net wrote: I normally do this also BUT sometimes I try to short circuit the process because I just want to regenerate the Solution/Projects and not have to

Re: [CMake] Properly Detecting Win64

2011-04-20 Thread James Bigler
On Wed, Apr 20, 2011 at 10:23 AM, David Cole david.c...@kitware.com wrote: On Wed, Apr 20, 2011 at 12:05 PM, j s j.s4...@gmail.com wrote: On Wed, Apr 20, 2011 at 10:55 AM, Michael Jackson mike.jack...@bluequartz.net wrote: I normally do this also BUT sometimes I try to short circuit the

[CMake] Disable buffer security check in visual studio /GS-

2011-04-20 Thread John Drescher
After profiling my Visual Studio 2005 application I see that over 5% of the execution time in the Release build was spent doing buffer security checks. I found the following link for CMake support http://www.cmake.org/pipermail/cmake-commits/2008-March/003844.html however I do not understand

[CMake] sequence of cmake external project

2011-04-20 Thread Yu, Daphne (SCR US)
Hello cmake users, I'm wondering if someone can clarify the sequence commands of CMake external project for me. For example, I have 2 external projects as below: ExternalProject_Add(A PREFIX A INSTALL_COMMAND [copies includes files of A to some path] ) ExternalProject_Add(B PREFIX B DEPENDS

Re: [CMake] Properly Detecting Win64 - [Semi Off Topic Reply]

2011-04-20 Thread Michael Jackson
Hey Dave, So here are some timings for running CMake to the point where I can actually build my project. THe hardware is an Mac Pro 8 Core (16 Thread) 2.6GHz OS X 10.6.6 box also running Windows 7 x64. On OS X I use Makefiles in combination with Eclipse as the IDE so I generate straight

Re: [CMake] Disable buffer security check in visual studio /GS-

2011-04-20 Thread John Drescher
On Wed, Apr 20, 2011 at 12:55 PM, John Drescher dresche...@gmail.com wrote: After profiling my Visual Studio 2005 application I see that over 5% of the execution time in the Release build was spent doing buffer security checks. I found the following link for CMake support

Re: [CMake] sequence of cmake external project

2011-04-20 Thread David Cole
On Wed, Apr 20, 2011 at 12:52 PM, Yu, Daphne (SCR US) daphne...@siemens.com wrote: Hello cmake users, I’m wondering if someone can clarify the sequence commands of CMake external project for me. For example, I have 2 external projects as below: ExternalProject_Add(A PREFIX A

Re: [CMake] Properly Detecting Win64 - [Semi Off Topic Reply]

2011-04-20 Thread David Cole
But you've blown everything else away at that point, so the *build* is a full rebuild, right? CMake configure takes 60 seconds, but how long does the full build take? On Wed, Apr 20, 2011 at 12:58 PM, Michael Jackson mike.jack...@bluequartz.net wrote: Hey Dave, So here are some timings for

Re: [CMake] Properly Detecting Win64 - [Semi Off Topic Reply]

2011-04-20 Thread j s
On Wed, Apr 20, 2011 at 12:04 PM, David Cole david.c...@kitware.com wrote: But you've blown everything else away at that point, so the *build* is a full rebuild, right? CMake configure takes 60 seconds, but how long does the full build take? My guess is that CMake is invoking a lot of

[CMake] Creating dependencies after adding an external project?

2011-04-20 Thread Lori Pritchett-Sheats
I have a project that depends on HDF5. A user can either specify an existing installation and thus use a find_package or choose to have HDF5 built with the project. I've been using Paraview as a template to implement this but I can't seem to get the dependencies for my project defined

Re: [CMake] Properly Detecting Win64 - [Semi Off Topic Reply]

2011-04-20 Thread j s
On Wed, Apr 20, 2011 at 12:58 PM, j s j.s4...@gmail.com wrote: On Wed, Apr 20, 2011 at 12:04 PM, David Cole david.c...@kitware.com wrote: But you've blown everything else away at that point, so the *build* is a full rebuild, right? CMake configure takes 60 seconds, but how long does the full

Re: [CMake] Creating dependencies after adding an external project?

2011-04-20 Thread Alexander Neundorf
On Wednesday 20 April 2011, Lori Pritchett-Sheats wrote: I have a project that depends on HDF5. A user can either specify an existing installation and thus use a find_package or choose to have HDF5 built with the project. I've been using Paraview as a template to implement this but I can't

Re: [CMake] Use of ADD_CUSTOM_COMMAND

2011-04-20 Thread Gib Bogle
Quoting Michael Hertling mhertl...@online.de: On 04/20/2011 05:40 AM, Fraser Hutchison wrote: Hi Gib, Try the following: GET_TARGET_PROPERTY(FUBAR_EXE fubar LOCATION) ADD_CUSTOM_COMMAND(TARGET fubar POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${FUBAR_EXE} somepath) Cheers, Fraser. Don't

Re: [CMake] Use of ADD_CUSTOM_COMMAND

2011-04-20 Thread Michael Hertling
On 04/20/2011 11:56 PM, Gib Bogle wrote: Quoting Michael Hertling mhertl...@online.de: On 04/20/2011 05:40 AM, Fraser Hutchison wrote: Hi Gib, Try the following: GET_TARGET_PROPERTY(FUBAR_EXE fubar LOCATION) ADD_CUSTOM_COMMAND(TARGET fubar POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy

[CMake] parallel ctest spawning too many threads

2011-04-20 Thread Kelly Thompson
Fellow CMake users: I'm having a problem with one of my projects when I run 'ctest -jN'. The problem is that after 70-90 tests, ctest decides to submit all of the remaining tests at once (~200 tests worth). For example (actual test names replaced to protect the innocent :-) % ctest -j16 Test

Re: [CMake] Use of ADD_CUSTOM_COMMAND

2011-04-20 Thread Gib Bogle
On 21/04/2011 11:38 a.m., Michael Hertling wrote: On 04/20/2011 11:56 PM, Gib Bogle wrote: Quoting Michael Hertlingmhertl...@online.de: On 04/20/2011 05:40 AM, Fraser Hutchison wrote: Hi Gib, Try the following: GET_TARGET_PROPERTY(FUBAR_EXE fubar LOCATION) ADD_CUSTOM_COMMAND(TARGET fubar

[CMake] SuperBuild whoes

2011-04-20 Thread Michael Wild
Hi all I'm trying to set up a SuperBuild here. Everything works nicely the first time round I build the project. The only real problem I have is that if I change the sources of one of the sub-projects, the SuperBuild still thinks everything is up to date. Of course, this is fully explainable by

[Cmake-commits] CMake branch, master, updated. v2.8.4-391-g12377a0

2011-04-20 Thread KWSys Robot
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, master has been updated via 12377a0e608aaeb03caff1fdc6630fcafd2c5cc4 (commit) from