mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08: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}'")
|