gnuradio.unwrapped: use lib.cmakeBool for feature flags

This commit is contained in:
Doron Behar
2025-08-16 21:50:35 +03:00
parent 247726e870
commit 237e7a71ac
+2 -4
View File
@@ -64,11 +64,9 @@ in
# Abuse this unavoidable "iteration" to set this flag which we want as
# well - it means: Don't turn on features just because their deps are
# satisfied, let only our cmakeFlags decide.
"-DENABLE_DEFAULT=OFF"
else if hasFeature feat then
"-DENABLE_${info.cmakeEnableFlag}=ON"
(lib.cmakeBool "ENABLE_DEFAULT" false)
else
"-DENABLE_${info.cmakeEnableFlag}=OFF"
(lib.cmakeBool "ENABLE_${info.cmakeEnableFlag}" (hasFeature feat))
)
) featuresInfo;
disallowedReferences = [