libcbor: fix cmake build on case-insensitive FS (on darwin) (#396662)

This commit is contained in:
K900
2025-04-08 16:37:34 +03:00
committed by GitHub
+4
View File
@@ -35,6 +35,10 @@ stdenv.mkDerivation (finalAttrs: {
cmocka # cmake expects cmocka module
];
# BUILD file already exists in the source
# TODO: make unconditional on staging.
cmakeBuildDir = if stdenv.isDarwin then "build.dir" else null;
cmakeFlags =
lib.optional finalAttrs.finalPackage.doCheck "-DWITH_TESTS=ON"
++ lib.optional (!stdenv.hostPlatform.isStatic) "-DBUILD_SHARED_LIBS=ON";