diff --git a/OMCompiler/Compiler/Template/CodegenFMU.tpl b/OMCompiler/Compiler/Template/CodegenFMU.tpl index 01fcd2a476c..a61296651d5 100644 --- a/OMCompiler/Compiler/Template/CodegenFMU.tpl +++ b/OMCompiler/Compiler/Template/CodegenFMU.tpl @@ -1351,7 +1351,7 @@ template fmuSourceMakefile(SimCode simCode, String FMUVersion) fmu: <%\t%>rm -f <%fileNamePrefix%>.fmutmp/sources/<%fileNamePrefix%>_init.xml<%/*Already translated to .c*/%> - <%\t%>cp -a <%makefileParams.omhome%>/share/omc/runtime/c/fmi/buildproject/* <%fileNamePrefix%>.fmutmp/sources + <%\t%>cp -a "<%makefileParams.omhome%>/share/omc/runtime/c/fmi/buildproject/"* <%fileNamePrefix%>.fmutmp/sources <%\t%>cp -a <%fileNamePrefix%>_FMU.libs <%fileNamePrefix%>.fmutmp/sources/ <%\n%> >>