Browse Source

FetchContent,ExternalProject: Fix extra semicolons in step commands

The extra semicolons weren't ultimately causing any errors when
running the step commands, but they shouldn't be there.
Craig Scott 1 year ago
parent
commit
a02eec4a9f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/ExternalProject/shared_internal_commands.cmake

+ 1 - 1
Modules/ExternalProject/shared_internal_commands.cmake

@@ -777,7 +777,7 @@ function(_ep_add_script_commands script_var work_dir cmd)
 
   # There can be multiple COMMANDs, but we have to split those up to
   # one command per call to execute_process()
-  set(execute_process_cmd
+  string(CONCAT execute_process_cmd
     "execute_process(\n"
     "  WORKING_DIRECTORY \"${work_dir}\"\n"
     "  COMMAND_ERROR_IS_FATAL LAST\n"