Re: [CMake] ExternalProject: avoiding rebuilds

2011-10-11 Thread Ben Medina
As an extreme example, consider using boost's header-only libraries. If I point external project at a boost tarball, every time I rebuild (or make clean; make), CMake will re-extract the tarball, which is quite slow for a tarball with so many files. Why does CMake re-extract tarballs at all? When

Re: [CMake] ExternalProject: avoiding rebuilds

2011-09-26 Thread Ben Medina
John is right. The external project may be at the bottom of a chain of (my own) project dependencies. I need to preserve the ability to easily rebuild just my projects (and their dependencies), not external projects. Think of ExternalProject as a replacement for pre-built libraries, and you'll see

Re: [CMake] ExternalProject: avoiding rebuilds

2011-09-26 Thread Rolf Eike Beer
Am Montag, 26. September 2011, 10:37:57 schrieb Ben Medina: John is right. The external project may be at the bottom of a chain of (my own) project dependencies. I need to preserve the ability to easily rebuild just my projects (and their dependencies), not external projects. Think of

Re: [CMake] ExternalProject: avoiding rebuilds

2011-09-26 Thread Ben Medina
It's the same as make clean; make, so it's not just a Visual Studio thing. On Mon, Sep 26, 2011 at 10:45 AM, Rolf Eike Beer e...@sf-mail.de wrote: Am Montag, 26. September 2011, 10:37:57 schrieb Ben Medina: John is right. The external project may be at the bottom of a chain of (my own) project

Re: [CMake] ExternalProject: avoiding rebuilds

2011-09-26 Thread kent williams
In general it's better to make your project into an ExternalProject itself, and have it depend on all other ExternalProject upon which it depends. That way all prerequisites get built, and then your package get built. It ensures that all prerequisites are fully built and installed before your

Re: [CMake] ExternalProject: avoiding rebuilds

2011-09-24 Thread Rolf Eike Beer
Am Freitag, 23. September 2011, 16:26:46 schrieb Ben Medina: Hello all, I'm trying to adopt greater usage of ExternalProject in my project. One problem I'd like to resolve is spurious rebuilds of external projects. [...] This works great: building test first untars the CLAPACK source and

Re: [CMake] ExternalProject: avoiding rebuilds

2011-09-24 Thread John Drescher
On Sat, Sep 24, 2011 at 4:11 AM, Rolf Eike Beer e...@sf-mail.de wrote: Am Freitag, 23. September 2011, 16:26:46 schrieb Ben Medina: Hello all, I'm trying to adopt greater usage of ExternalProject in my project. One problem I'd like to resolve is spurious rebuilds of external projects.

[CMake] ExternalProject: avoiding rebuilds

2011-09-23 Thread Ben Medina
Hello all, I'm trying to adopt greater usage of ExternalProject in my project. One problem I'd like to resolve is spurious rebuilds of external projects. For example, I'd like to build CLAPACK as an external project, so I do something like this: ExternalProject_Add (clapack URL