python311Packages.xtensor: always build tests

This commit is contained in:
Doron Behar
2024-05-19 00:26:03 +03:00
parent 9a78139e38
commit 2f8ae866d1

View File

@@ -31,7 +31,9 @@ toPythonModule (stdenv.mkDerivation(finalAttrs: {
];
doCheck = true;
cmakeFlags = [
"-DBUILD_TESTS=${if finalAttrs.finalPackage.doCheck then "ON" else "OFF"}"
# Always build the tests, even if not running them, because testing whether
# they can be built is a test in itself.
"-DBUILD_TESTS=ON"
];
propagatedBuildInputs = [