diff --git a/dart_filament/native/web/replace_in_file.cmake b/dart_filament/native/web/replace_in_file.cmake index 3005fa47..c6114028 100644 --- a/dart_filament/native/web/replace_in_file.cmake +++ b/dart_filament/native/web/replace_in_file.cmake @@ -1,14 +1,3 @@ file(READ ${INPUTFILE} INPUT_TEXT) - -foreach(TO_REPLACE_STRING ${TO_REPLACE}) - - #get the index of the current to_replace string - list(FIND TO_REPLACE ${TO_REPLACE_STRING} REPLACE_INDEX) - - #look up the corresponding replacement string - list(GET REPLACEMENT ${REPLACE_INDEX} REPLACEMENT_STRING) - - string(REPLACE ${TO_REPLACE_STRING} ${REPLACEMENT_STRING} INPUT_TEXT "${INPUT_TEXT}") -endforeach() - +string(REPLACE ${TO_REPLACE} ${REPLACEMENT} INPUT_TEXT "${INPUT_TEXT}") file(WRITE ${OUTPUTFILE} "${INPUT_TEXT}") \ No newline at end of file