mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-10 07:40:03 -06:00
When appending or modifying to a variable that has not been modified before, the iterator was not valid, but it was used to insert into the map again. Instead, just use indexing into the map since we know it will exist by the end of the function anyways. Fixes: #22796