mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-08-11 11:03:04 +00:00
libtoml11: check PTEST_ENABLED instead of DISTRO_FEATURES
Checking for PTEST_ENABLED 1 is the preferred method for enabling and disabling ptests for packages. Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
6a5cb4697b
commit
ce96911f68
@ -21,7 +21,7 @@ SRC_URI = "gitsm://github.com/ToruNiina/toml11.git;protocol=https;branch=main \
|
||||
inherit cmake ptest
|
||||
|
||||
EXTRA_OECMAKE += "-DTOML11_PRECOMPILE=ON \
|
||||
-DTOML11_BUILD_TESTS=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "ON", "OFF", d)} \
|
||||
-DTOML11_BUILD_TESTS=${@bb.utils.contains("PTEST_ENABLED", "1", "ON", "OFF", d)} \
|
||||
"
|
||||
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user