libcbor: fix cmake build on case-insensitive FS (on darwin) (#396662)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user