package/pistache: fix dependency on rapidjson

rapidjson has been added as a dependency of pistache as part of commit
2f32185679 ("package/pistache: bump
version & switch to meson build"), using a "depends on". However, as
it is a library dependency, a "select" is normally used in Buildroot.

rapidjson's only dependency is on C++ support, which is already a
dependency of pistache.

In addition, use = instead of += for the rapidjson dependency in the
.mk file, as it's an unconditional dependency.

Cc: Thomas Ruschival <thomas@ruschival.de>
Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022.08.x
Thomas Petazzoni 2022-08-04 22:35:53 +02:00 committed by Yann E. MORIN
parent 192b754bf4
commit 240aae4793
2 changed files with 2 additions and 2 deletions

View File

@ -4,9 +4,9 @@ config BR2_PACKAGE_PISTACHE
depends on BR2_USE_WCHAR
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_PACKAGE_RAPIDJSON
depends on !BR2_TOOLCHAIN_USES_UCLIBC
depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_27597
select BR2_PACKAGE_RAPIDJSON
help
Pistache is a modern and elegant HTTP and REST framework
for C++. It is entirely written in pure C++17 and provides

View File

@ -10,7 +10,7 @@ PISTACHE_LICENSE = Apache-2.0
PISTACHE_LICENSE_FILES = LICENSE
PISTACHE_INSTALL_STAGING = YES
PISTACHE_DEPENDENCIES += rapidjson
PISTACHE_DEPENDENCIES = rapidjson
ifeq ($(BR2_PACKAGE_OPENSSL),y)
PISTACHE_DEPENDENCIES += openssl