treewide: migrate cmakeFeature to cmakeBool (#410626)

This commit is contained in:
Pol Dellaiera
2025-06-02 16:21:17 +02:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeFeature "KISSFFT_DATATYPE" datatype)
(lib.cmakeBool "KISSFFT_STATIC" enableStatic)
# `test/testkiss.py` expects this…
(lib.cmakeFeature "KISSFFT_OPENMP" (if enableOpenmp then "ON" else "OFF"))
(lib.cmakeBool "KISSFFT_OPENMP" enableOpenmp)
];
# Required for `test/testcpp.c`.
+4 -4
View File
@@ -66,10 +66,10 @@ stdenv.mkDerivation (finalAttrs: {
];
cmakeFlags = [
(lib.cmakeFeature "BUILD_VANILLATD" (if appName == "vanillatd" then "ON" else "OFF"))
(lib.cmakeFeature "BUILD_VANILLARA" (if appName == "vanillara" then "ON" else "OFF"))
(lib.cmakeFeature "BUILD_REMASTERTD" (if appName == "remastertd" then "ON" else "OFF"))
(lib.cmakeFeature "BUILD_REMASTERRA" (if appName == "remasterra" then "ON" else "OFF"))
(lib.cmakeBool "BUILD_VANILLATD" (appName == "vanillatd"))
(lib.cmakeBool "BUILD_VANILLARA" (appName == "vanillara"))
(lib.cmakeBool "BUILD_REMASTERTD" (appName == "remastertd"))
(lib.cmakeBool "BUILD_REMASTERRA" (appName == "remasterra"))
(lib.cmakeFeature "CMAKE_BUILD_TYPE" CMAKE_BUILD_TYPE)
];