Re: [CMake] CMake 2.8.12-rc2 Released

2013-09-16 Thread Rolf Eike Beer
Am Montag, 16. September 2013, 21:58:08 schrieb clin...@elemtech.com: > Same here... and this looks like a regression: > > A simple CMakeLists.txt like this can reproduce it. > > set(CMAKE_BUILD_TYPE Debug) > find_package(HDF5 COMPONENTS C HL REQUIRED) > add_executable(foo foo.cpp) > target_link_

Re: [CMake] CMake 2.8.12-rc2 Released

2013-09-16 Thread clinton
Same here... and this looks like a regression: A simple CMakeLists.txt like this can reproduce it. set(CMAKE_BUILD_TYPE Debug) find_package(HDF5 COMPONENTS C HL REQUIRED) add_executable(foo foo.cpp) target_link_libraries(foo ${HDF5_LIBRARIES}) FindHDF5.cmake misuses CMAKE_BUILD_TYPE and CMAKE_CO

Re: [CMake] ExternalProject and redundant update/configure/compile actions.

2013-09-16 Thread Pat Marion
Agreed, but right now ExternalProject is my favorite solution to this problem. I prefer the ExternalProject approach over the ParaView + internal VTK / git-submodule approach. So I'm just looking for ways to alter ExternalProject to be a little nicer to my workflow, which is incremental builds of

Re: [CMake] ExternalProject and redundant update/configure/compile actions.

2013-09-16 Thread Jean-Christophe Fillion-Robin
Some background about the Slicer build system that inspired the NamicExternalProjects system discussed by Kent ... Before CMake 2.8.8, we disabled the UPDATE of external project because it was not working well with Visual Studio. While this was working as expected, the overall build time was also

Re: [CMake] ExternalProject and redundant update/configure/compile actions.

2013-09-16 Thread David Cole
It *could* work, depending on the project. I wouldn't do it. But it *could* work. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information

Re: [CMake] CMake 2.8.12-rc2 Released

2013-09-16 Thread Orion Poplawski
On 08/30/2013 02:49 PM, Robert Maynard wrote: The CMake 2.8.12 release candidate stream continues! You can find the source and binaries here: http://www.cmake.org/files/v2.8/?C=M;O=D Is it expected that this is now an error? CMake Error: The following variables are used in this project, but th

Re: [CMake] CMake 2.8.12-rc2 Released

2013-09-16 Thread Orion Poplawski
On 08/30/2013 02:49 PM, Robert Maynard wrote: The CMake 2.8.12 release candidate stream continues! You can find the source and binaries here: http://www.cmake.org/files/v2.8/?C=M;O=D Is it expected that this is now an error? CMake Error: The following variables are used in this project, but th

Re: [CMake] ExternalProject and redundant update/configure/compile actions.

2013-09-16 Thread Pat Marion
I think one issue is this: > 2. If the configure is re-run, it regenerates configuration files. For some projects, if you just update and run make, then nothing rebuilds and nothing reinstalls. But if you run cmake && make, then things rebuild and reinstall. So, maybe you *do* want to do an upd

Re: [CMake] ExternalProject and redundant update/configure/compile actions.

2013-09-16 Thread Alan W. Irwin
On 2013-09-16 17:24- Williams, Norman K wrote: OK, yeah, I know about disabling updates. I don't remember who or when I got the advice NOT to disable updates. And all of the projects in our Super-Duper-build do get set to specific SVN/GIT/CVS tags. This is the only way to get predictable

Re: [CMake] ExternalProject and redundant update/configure/compile actions.

2013-09-16 Thread Williams, Norman K
OK, yeah, I know about disabling updates. I don't remember who or when I got the advice NOT to disable updates. And all of the projects in our Super-Duper-build do get set to specific SVN/GIT/CVS tags. This is the only way to get predictable behavior. And my reasoning was 'if you always request

Re: [CMake] ExternalProject and redundant update/configure/compile actions.

2013-09-16 Thread David Cole
Agreed, but right now ExternalProject is my favorite solution to this problem.  I prefer the ExternalProject approach over the ParaView + internal VTK / git-submodule approach.  So I'm just looking for ways to alter ExternalProject to be a little nicer to my workflow, which is incremental builds o

Re: [CMake] ExternalProject and redundant update/configure/compile actions.

2013-09-16 Thread David Cole
... then the project never rebuilds, since reconfigure and rebuild depend on update. So if you modify a source file of a project without a download command, then superbuild will not rebuild the project. Ahem. "If you modify a source file of a project" then *you* should rebuild the project.

Re: [CMake] ExternalProject and redundant update/configure/compile actions.

2013-09-16 Thread Pat Marion
There's a related issue, I think, if you skip the update step, then the project never rebuilds, since reconfigure and rebuild depend on update. So if you modify a source file of a project without a download command, then superbuild will not rebuild the project. So my workaround (used in VES, for

[CMake] DeployQt4.cmake on MacOSX with commandline utilities

2013-09-16 Thread Andreas Pakulat
Hi, I'm wondering wether I'm overlooking something with DeployQt4.cmake or wether its not prepared to handle commandline utilities using Qt (and Qt plugins). I'm having a server-like app which uses networking and the sqlite plugin and when trying to install it the INSTALL_QT4_EXECUTABLE macro see

Re: [CMake] Terrible compile problems with Cmake and VS2012 Express

2013-09-16 Thread David Cole
http://stackoverflow.com/a/18832388/236192 -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Su

[CMake] ExternalProject and redundant update/configure/compile actions.

2013-09-16 Thread Williams, Norman K
This has to do with a project we've been working on for a couple of months; it is a 'grand unified build' system for the Image Processing we (and probably many others) use for our production image analysis. You can check it out/examine it here: https://github.com/BRAINSia/NamicExternalProjects Cu

[CMake] Terrible compile problems with Cmake and VS2012 Express

2013-09-16 Thread Kenneth Miller
I have a question on stack overflow: http://stackoverflow.com/questions/18824604/cmake-and-visual-studio-build-errors Basically, I'm trying to build tulip with visual studio 2012.  Tulip is located here: tulip.labri.fr The problem is, the instructions the tulip creators left for compiling tulip

Re: [CMake] ExternalProject and redundant update/configure/compile actions.

2013-09-16 Thread David Cole
If you don't want the update step to pull changes from the repository, then use: UPDATE_COMMAND "" Otherwise, if you are building from a live repo, then the update step witl ALWAYS run in case something has changed upstream. Then, all the subsequent steps after update must also run just in

Re: [CMake] Separate compile flags for ASM/C compilers and lists

2013-09-16 Thread Andreas Pakulat
Hi, On Mon, Sep 16, 2013 at 10:24 AM, Nikolay wrote: > > On 14 September 2013 09:59, Alexander Neundorf wrote: > >> On Friday 13 September 2013, lorddoskias wrote: >> > Hello list, >> > >> > I have a couple of questions whose answers I couldn't find. So first >> > thing's first - I have the foll

Re: [CMake] Separate compile flags for ASM/C compilers and lists

2013-09-16 Thread Nikolay
On 14 September 2013 09:59, Alexander Neundorf wrote: > On Friday 13 September 2013, lorddoskias wrote: > > Hello list, > > > > I have a couple of questions whose answers I couldn't find. So first > > thing's first - I have the following function which I intend to use to > > add a number of librar

Re: [CMake] Clarification around "target_link_libraries"

2013-09-16 Thread SF Markus Elfring
>> 1. The target name can be resolved inside the build system. But how should >> I determine generated file names when I want to refer to them from >> external sources like installation directories? > > Sorry, I don't really understand your question. What generated file names, > and what external