summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakePresetsFile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-24 14:33:59 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-24 14:33:59 (GMT)
commit06e16ea008bf6efbe68028279539cfc6d1ff7a93 (patch)
tree32d9e2b807f4027033b02db6a3a189cf459c0698 /Source/cmCMakePresetsFile.cxx
parentafaa69f5b3812904177eb96dfb59a505a7e165d7 (diff)
parent431dd59b5e30000c3e3860af69c0dd387634205b (diff)
downloadCMake-06e16ea008bf6efbe68028279539cfc6d1ff7a93.zip
CMake-06e16ea008bf6efbe68028279539cfc6d1ff7a93.tar.gz
CMake-06e16ea008bf6efbe68028279539cfc6d1ff7a93.tar.bz2
Merge branch 'backport-3.19-preset-no-comments' into preset-no-comments
Diffstat (limited to 'Source/cmCMakePresetsFile.cxx')
-rw-r--r--Source/cmCMakePresetsFile.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmCMakePresetsFile.cxx b/Source/cmCMakePresetsFile.cxx
index 29d5325..c8d69b8 100644
--- a/Source/cmCMakePresetsFile.cxx
+++ b/Source/cmCMakePresetsFile.cxx
@@ -1519,6 +1519,7 @@ cmCMakePresetsFile::ReadFileResult cmCMakePresetsFile::ReadJSONFile(
Json::Value root;
Json::CharReaderBuilder builder;
+ Json::CharReaderBuilder::strictMode(&builder.settings_);
if (!Json::parseFromStream(builder, fin, &root, nullptr)) {
return ReadFileResult::JSON_PARSE_ERROR;
}