diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-02-23 20:38:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-02-24 14:28:36 (GMT) |
commit | 431dd59b5e30000c3e3860af69c0dd387634205b (patch) | |
tree | afddb9ba8c4ba1069057f1d969dee05d40636bdb /Source | |
parent | d5401de605af11ad3cd1c6faa64bf319af6b67c6 (diff) | |
download | CMake-431dd59b5e30000c3e3860af69c0dd387634205b.zip CMake-431dd59b5e30000c3e3860af69c0dd387634205b.tar.gz CMake-431dd59b5e30000c3e3860af69c0dd387634205b.tar.bz2 |
CMakePresets.json: Remove undocumented support for comments
Fixes: #21858
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmCMakePresetsFile.cxx | 1 |
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; } |