Skip to content

Commit

Permalink
sh script for OMSICpp uses dots in name
Browse files Browse the repository at this point in the history
  - workaround to get OMSICpp running on Linux with modelanmes containing dots
  • Loading branch information
AnHeuermann authored and AnHeuermann committed Nov 25, 2020
1 parent 05b0508 commit 180473f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMCompiler/Compiler/Template/CodegenFMU.tpl
Expand Up @@ -1373,7 +1373,7 @@ template fmuSourceMakefile(SimCode simCode, String FMUVersion)
"Generates the contents of the makefile for the simulation case. Copy libexpat & correct linux fmu"
::=
match simCode
case SIMCODE(modelInfo=MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__), simulationSettingsOpt = sopt) then
case SIMCODE(modelInfo=modelInfo as MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__), simulationSettingsOpt = sopt) then
let includedir = '<%fileNamePrefix%>.fmutmp/sources/'
let mkdir = match makefileParams.platform case "win32" case "win64" then '"mkdir.exe"' else 'mkdir'
<<
Expand All @@ -1389,7 +1389,7 @@ template fmuSourceMakefile(SimCode simCode, String FMUVersion)
match Config.simCodeTarget()
case "omsicpp" then
<<
<%\t%>chmod +x <%fileNamePrefix%>.sh
<%\t%>chmod +x <%dotPath(modelInfo.name)%>.sh
>>
end match
%>
Expand Down

0 comments on commit 180473f

Please sign in to comment.