summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakePresetsFile.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2021-02-23 20:38:10 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-24 14:28:36 (GMT)
commit431dd59b5e30000c3e3860af69c0dd387634205b (patch)
treeafddb9ba8c4ba1069057f1d969dee05d40636bdb /Source/cmCMakePresetsFile.cxx
parentd5401de605af11ad3cd1c6faa64bf319af6b67c6 (diff)
downloadCMake-431dd59b5e30000c3e3860af69c0dd387634205b.zip
CMake-431dd59b5e30000c3e3860af69c0dd387634205b.tar.gz
CMake-431dd59b5e30000c3e3860af69c0dd387634205b.tar.bz2
CMakePresets.json: Remove undocumented support for comments
Fixes: #21858
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 cf5db6e..872cb4e 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;
}