xsimd: always build the tests

This commit is contained in:
Doron Behar
2024-05-19 00:05:16 +03:00
parent f983568125
commit 3558ec4b9d

View File

@@ -30,7 +30,9 @@ stdenv.mkDerivation (finalAttrs: {
];
cmakeFlags = [
"-DBUILD_TESTS=${if (finalAttrs.finalPackage.doCheck && stdenv.hostPlatform == stdenv.buildPlatform) 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"
];
doCheck = true;