Fix SplitSource.php.

GitOrigin-RevId: e5853e450281acfcfb91730f4627585814f6c083
This commit is contained in:
levlam 2020-06-13 20:22:23 +03:00
parent 2ed9cb3b75
commit 5bb97658eb

View File

@ -39,9 +39,9 @@ function split_file($file, $chunks, $undo) {
$cmake_new_files = $new_files; $cmake_new_files = $new_files;
if ($is_generated) { if ($is_generated) {
foreach ($cmake_new_files as &$file_ref) { foreach ($cmake_new_files as &$file_ref) {
$file_ref = str_replace('td/generate', '${CMAKE_CURRENT_SOURCE_DIR}', $file_ref); $file_ref = str_replace('td/generate/auto/td', '${TD_AUTO_INCLUDE_DIR}', $file_ref);
} }
$cmake_cpp_name = str_replace('td/generate', '${CMAKE_CURRENT_SOURCE_DIR}', $cmake_cpp_name); $cmake_cpp_name = str_replace('td/generate/auto/td', '${TD_AUTO_INCLUDE_DIR}', $cmake_cpp_name);
} }
if ($undo) { if ($undo) {