[cmake-developers] Fwd: CMake System Prefix Path

Alexander Neundorf neundorf at kde.org
Tue Oct 22 17:10:10 EDT 2013


On Tuesday 22 October 2013, Alexander Neundorf wrote:
> On Tuesday 22 October 2013, Stephen Kelly wrote:
> > Forwarding this for Ben.
> > 
> > Would it be reasonable to have a way to not add the CMAKE_INSTALL_PREFIX
> > to the CMAKE_SYSTEM_PREFIX_PATH?
> > 
> > The install prefix is not cleared before the CI build on build.kde.org
> > because the dependency graph is quite large (everything depends on Qt,
> > most things depend on kdelibs, some things depend on kdepimlibs etc).
> > 
> > Successful builds are uploaded to a master server and build nodes will
> > re-download that if they have no version of the dependency. That
> > re-download can be huge and take significant time, so it is avoided by
> > also not clearing the install prefix on each of the build nodes.
> > 
> > Is the only solution to this as Ben describes with
> > passing NO_CMAKE_SYSTEM_PATH to CMake?
> 
> Is everything installed into its own separate directory, or everything into
> one common install directory ?

Is still cmake git next used for the builds ?
It is only one line in UnixPaths.cmake, so a workaround for that special case 
could be to simply use a patched version of 2.8.12, which is the version 
required by kdelibs, and comment that one line out.

Alex



More information about the cmake-developers mailing list