[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cmake build system and build directories

From: Ludovic Courtès
Subject: Re: Cmake build system and build directories
Date: Mon, 25 Nov 2013 23:41:04 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Andreas Enge <address@hidden> skribis:

> CMake Error at cmake/modules/MacroEnsureOutOfSourceBuild.cmake:17 (MESSAGE):
>   kdelibs requires an out of source build.  Please create a separate build
>   directory and run 'cmake path_to_kdelibs [options]' there.
> Call Stack (most recent call first):
>   CMakeLists.txt:157 (macro_ensure_out_of_source_build)
> I think it is simply a matter of replacing in
>    cmake-build-system.scm (configure)
> the call to
>    cmake
> by
>    mkdir build
>    cd build
>    cmake ..
> (appropriately guilified).

I suspect this one-byte change is enough:

diff --git a/guix/build-system/cmake.scm b/guix/build-system/cmake.scm
index e09f165..1a5f4b6 100644
--- a/guix/build-system/cmake.scm
+++ b/guix/build-system/cmake.scm
@@ -48,7 +48,7 @@
                      (search-paths '())
                      (make-flags ''())
                      (cmake (default-cmake))
-                     (out-of-source? #f)
+                     (out-of-source? #t)
                      (tests? #t)
                      (test-target "test")
                      (parallel-build? #t) (parallel-tests? #f)
Can you confirm?

It will cause some rebuild, but it’s probably the right thing since my
understanding is that out-of-source builds are the norm with CMake.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]