]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
pkg-cmake.mk: globally disable BUILD_TESTING flag
authorSamuel Martin <s.martin49@gmail.com>
Sun, 1 Jun 2014 09:24:28 +0000 (11:24 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 1 Jun 2014 20:18:25 +0000 (22:18 +0200)
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>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-cmake.mk

index 56a93c70ac2743630f8a9898e07fefd0deb3a2f2..6331e0f3e7e4c385481cb1737ce697fa5fb5cb48 100644 (file)
@@ -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