mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
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@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user