nlohmann_json: Enable JSON_FastTests, use JSON_BuildTests instead of BuildTests

This commit is contained in:
Madoura 2022-07-14 02:34:26 -05:00
parent 843684e44e
commit 182c974f57
No known key found for this signature in database
GPG Key ID: 3201136B3DB072F9

View File

@ -24,7 +24,8 @@ in stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DBuildTests=${if finalAttrs.doCheck then "ON" else "OFF"}"
"-DJSON_BuildTests=${if finalAttrs.doCheck then "ON" else "OFF"}"
"-DJSON_FastTests=ON"
"-DJSON_MultipleHeaders=ON"
] ++ lib.optional finalAttrs.doCheck "-DJSON_TestDataDirectory=${testData}";