From patchwork Sun Jan 20 23:52:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC,v1,06/14] cmake infrastructure: support out of tree build Date: Sun, 20 Jan 2013 13:52:15 -0000 From: Thomas Petazzoni X-Patchwork-Id: 214001 Message-Id: <1358725943-31485-7-git-send-email-thomas.petazzoni@free-electrons.com> To: buildroot@uclibc.org The cmake infrastructure almost naturally supports out of tree build. The only thing is that the _BUILDDIR and _SRCDIR variables are now defined by pkg-generic. Signed-off-by: Thomas Petazzoni --- package/pkg-cmake.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk index 626a0b0..6653d3f 100644 --- a/package/pkg-cmake.mk +++ b/package/pkg-cmake.mk @@ -46,9 +46,7 @@ $(2)_INSTALL_HOST_OPT ?= install $(2)_INSTALL_STAGING_OPT ?= DESTDIR=$$(STAGING_DIR) install $(2)_INSTALL_TARGET_OPT ?= DESTDIR=$$(TARGET_DIR) install $(2)_CLEAN_OPT ?= clean - -$(2)_SRCDIR = $$($(2)_DIR)/$($(2)_SUBDIR) -$(2)_BUILDDIR = $$($(2)_SRCDIR) +$(2)_SUPPORTS_OUT_OF_TREE = YES # # Configure step. Only define it if not already defined by the package