Rewrite replace_variables with CMake-specific version

Behavior matches CMake's CMP0053 policy that is the current standard for
variable expansion for `configure_file()`
834f8d45baMrDmitry committed on 1/26/2024, 6:33:17 PMparent2ce32e4
1 file changedLine totals unavailable