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:
Adam Duskett
2026-02-17 16:41:40 +01:00
committed by Khem Raj
parent 6a5cb4697b
commit ce96911f68

View File

@@ -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"