mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Some code paths in `ExpandVariablesInString{New,Old}` were not checking
the `filename` parameter for a null pointer, but this can happen when
using the above flags together. Add the checks and a test case.
Fixes: #17896
5 lines
152 B
CMake
5 lines
152 B
CMake
cmake_policy(SET CMP0053 OLD)
|
|
message(STATUS "'${uninitialized_variable}'")
|
|
cmake_policy(SET CMP0053 NEW)
|
|
message(STATUS "'${uninitialized_variable}'")
|