Skip to content

Commit

Permalink
Fix FMU export for Windows
Browse files Browse the repository at this point in the history
Quote the OMHOME path so that `cp` doesn't complain about spaces.
  • Loading branch information
adeas31 committed Oct 8, 2019
1 parent 9564849 commit 48efb09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/Template/CodegenFMU.tpl
Expand Up @@ -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%>
>>
Expand Down

0 comments on commit 48efb09

Please sign in to comment.