summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2021-02-23 15:38:10 -0500
committerBrad King <brad.king@kitware.com>2021-02-24 09:28:36 -0500
commit431dd59b5e30000c3e3860af69c0dd387634205b (patch)
treeafddb9ba8c4ba1069057f1d969dee05d40636bdb /Source
parentd5401de605af11ad3cd1c6faa64bf319af6b67c6 (diff)
downloadcmake-431dd59b5e30000c3e3860af69c0dd387634205b.tar.gz
CMakePresets.json: Remove undocumented support for comments
Fixes: #21858
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCMakePresetsFile.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmCMakePresetsFile.cxx b/Source/cmCMakePresetsFile.cxx
index cf5db6ec47..872cb4e638 100644
--- a/Source/cmCMakePresetsFile.cxx
+++ b/Source/cmCMakePresetsFile.cxx
@@ -839,6 +839,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;
}