From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Cmake build system and build directories Date: Mon, 25 Nov 2013 23:41:04 +0100 Message-ID: <8761rgqf3z.fsf@gnu.org> References: <20131125222201.GA14911@debian> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vl4qA-0001wr-BK for guix-devel@gnu.org; Mon, 25 Nov 2013 17:41:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vl4q2-0004oF-RR for guix-devel@gnu.org; Mon, 25 Nov 2013 17:41:14 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:3619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vl4q2-0004o2-Ka for guix-devel@gnu.org; Mon, 25 Nov 2013 17:41:06 -0500 In-Reply-To: <20131125222201.GA14911@debian> (Andreas Enge's message of "Mon, 25 Nov 2013 23:22:01 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Andreas Enge 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: --=-=-= Content-Type: text/x-patch Content-Disposition: inline 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) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Can you confirm? It will cause some rebuild, but it=E2=80=99s probably the right thing since= my understanding is that out-of-source builds are the norm with CMake. Ludo=E2=80=99. --=-=-=--