commit: 462bee716e348083ab3d99e8b11266bf14b8880b Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Oct 11 20:20:29 2020 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Oct 11 20:31:49 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=462bee71
dev-cpp/nlohmann_json: conditionally pass test data dir Closes: https://bugs.gentoo.org/747826 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-cpp/nlohmann_json/nlohmann_json-3.9.1.ebuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dev-cpp/nlohmann_json/nlohmann_json-3.9.1.ebuild b/dev-cpp/nlohmann_json/nlohmann_json-3.9.1.ebuild index 8c50916e83e..691afb13f9c 100644 --- a/dev-cpp/nlohmann_json/nlohmann_json-3.9.1.ebuild +++ b/dev-cpp/nlohmann_json/nlohmann_json-3.9.1.ebuild @@ -26,11 +26,17 @@ DOCS=( ChangeLog.md README.md ) src_configure() { local mycmakeargs=( - -DJSON_BuildTests=$(usex test) - -DJSON_TestDataDirectory="${S}/json_test_data" -DJSON_MultipleHeaders=ON ) + if use test ; then + # Define test data directory here to avoid unused var QA warning + # #747826 + mycmakeargs+=( + -DJSON_BuildTests=ON + -DJSON_TestDataDirectory="${S}/json_test_data" + ) + fi cmake_src_configure }