From af521f6d2c365ec981930b8ac3127f506655b792 Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Mon, 27 Jul 2020 15:01:37 +0200 Subject: dev-ros/ament_cmake_xmllint: dont build tests when not needed Closes: https://bugs.gentoo.org/734082 Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Alexis Ballier --- dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-9999.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-9999.ebuild') diff --git a/dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-9999.ebuild b/dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-9999.ebuild index c340183a9e6b..065d1257e262 100644 --- a/dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-9999.ebuild +++ b/dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-9999.ebuild @@ -52,3 +52,10 @@ python_check_deps() { has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]" && \ has_version "dev-ros/ament_xmllint[${PYTHON_USEDEP}]" } + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test ON OFF) + ) + cmake_src_configure +} -- cgit v1.2.3-65-gdbad