Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Martin <s.martin49@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4 06/11] pkg-cmake.mk: globally disable BUILD_TESTING flag
Date: Sun,  1 Jun 2014 11:24:28 +0200	[thread overview]
Message-ID: <1401614673-3703-7-git-send-email-s.martin49@gmail.com> (raw)
In-Reply-To: <1401614673-3703-1-git-send-email-s.martin49@gmail.com>

This CMake flag is used to enable tests. It may not disable the test
programs from being built, but it controls the test execution.

Since we don't care about building the tests (and usually disable them
when possible), make sure Buildroot won't try to run them.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

---
changes v3 -> v4:
- rebase
- disable BUILD_TESTING for host-package as well (Arnout)

changes v2 -> v3:
- new patch
---
 package/pkg-cmake.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk
index 1de1d4a..c34b979 100644
--- a/package/pkg-cmake.mk
+++ b/package/pkg-cmake.mk
@@ -65,6 +65,7 @@ define $(2)_CONFIGURE_CMDS
 		-DCMAKE_TOOLCHAIN_FILE="$$(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake" \
 		-DCMAKE_INSTALL_PREFIX="/usr" \
 		-DCMAKE_COLOR_MAKEFILE=OFF \
+		-DBUILD_TESTING=OFF \
 		-DBUILD_SHARED_LIBS=$(if $(BR2_PREFER_STATIC_LIB),OFF,ON) \
 		-DUSE_CCACHE=$(if $(BR2_CCACHE),ON,OFF) \
 		$$($$(PKG)_CONF_OPT) \
@@ -85,6 +86,7 @@ define $(2)_CONFIGURE_CMDS
 		-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="BOTH" \
 		-DCMAKE_INSTALL_PREFIX="$$(HOST_DIR)/usr" \
 		-DUSE_CCACHE=$(if $(BR2_CCACHE),ON,OFF) \
+		-DBUILD_TESTING=OFF \
 		$$($$(PKG)_CONF_OPT) \
 	)
 endef
-- 
1.9.2

  parent reply	other threads:[~2014-06-01  9:24 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-01  9:24 [Buildroot] [PATCH v4 00/11] CMake infrastructure refactoring Samuel Martin
2014-06-01  9:24 ` [Buildroot] [PATCH v4 01/11] pkg-cmake.mk: refactor the toolchainfile.cmake generation Samuel Martin
2014-06-01 10:54   ` Thomas Petazzoni
2014-06-01 20:12   ` Peter Korsgaard
2014-06-01  9:24 ` [Buildroot] [PATCH v4 02/11] pkg-cmake.mk: do not hardcode absolute path in toolchainfile.cmake Samuel Martin
2014-06-01 10:57   ` Thomas Petazzoni
2014-06-01 20:16   ` Peter Korsgaard
2014-06-01  9:24 ` [Buildroot] [PATCH v4 03/11] pkg-cmake.mk: enable ccache for cmake packages Samuel Martin
2014-06-01 10:57   ` Thomas Petazzoni
2014-06-01 20:17   ` Peter Korsgaard
2014-06-01  9:24 ` [Buildroot] [PATCH v4 04/11] rpi-userland: cleanup *_CONF_OPT Samuel Martin
2014-06-01 11:04   ` Thomas Petazzoni
2014-06-01  9:24 ` [Buildroot] [PATCH v4 05/11] xbmc: fix missing libraries from rpi-userland Samuel Martin
2014-06-01  9:24 ` Samuel Martin [this message]
2014-06-01 11:05   ` [Buildroot] [PATCH v4 06/11] pkg-cmake.mk: globally disable BUILD_TESTING flag Thomas Petazzoni
2014-06-01 20:18   ` Peter Korsgaard
2014-06-01  9:24 ` [Buildroot] [PATCH v4 07/11] pkg-cmake.mk: globally drive the CMAKE_BUILD_TYPE flag using BR2_ENABLE_DEBUG Samuel Martin
2014-06-01 11:06   ` Thomas Petazzoni
2014-06-01 20:18   ` Peter Korsgaard
2014-06-01  9:24 ` [Buildroot] [PATCH v4 08/11] openpowerlink: do not override CMAKE_BUILD_TYPE Samuel Martin
2014-06-01 11:07   ` Thomas Petazzoni
2014-06-01 20:19   ` Peter Korsgaard
2014-06-01  9:24 ` [Buildroot] [PATCH v4 09/11] opencv: " Samuel Martin
2014-06-01 11:07   ` Thomas Petazzoni
2014-06-01 20:20   ` Peter Korsgaard
2014-06-01  9:24 ` [Buildroot] [PATCH v4 10/11] flann: " Samuel Martin
2014-06-01 11:07   ` Thomas Petazzoni
2014-06-01 20:20   ` Peter Korsgaard
2014-06-01  9:24 ` [Buildroot] [PATCH v4 11/11] qhull: " Samuel Martin
2014-06-01 11:07   ` Thomas Petazzoni
2014-06-01 20:20   ` Peter Korsgaard
2014-06-01 11:08 ` [Buildroot] [PATCH v4 00/11] CMake infrastructure refactoring Thomas Petazzoni
2014-06-01 20:20   ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1401614673-3703-7-git-send-email-s.martin49@gmail.com \
    --to=s.martin49@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox