cmLocalGenerator: fix quoting in generated script

This commit is contained in:
Ben Boeckel
2025-06-16 14:28:22 +02:00
parent 552d5502ed
commit cb46c4a918

View File

@@ -2946,7 +2946,7 @@ void cmLocalGenerator::CopyPchCompilePdb(
file << "foreach(retry RANGE 1 30)\n";
file << " if (EXISTS \"" << from_file << "\" AND (NOT EXISTS \""
<< dest_file << "\" OR NOT \"" << dest_file << " \" IS_NEWER_THAN \""
<< dest_file << "\" OR NOT \"" << dest_file << "\" IS_NEWER_THAN \""
<< from_file << "\"))\n";
file << " execute_process(COMMAND ${CMAKE_COMMAND} -E copy";
file << " \"" << from_file << "\""