Skip to content

Commit

Permalink
fix for bat file in cpp template
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22829 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Oct 21, 2014
1 parent 42a9ba8 commit fe5bb5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -1219,10 +1219,11 @@ let tol = settings.tolerance
let solver = settings.method
let moLib = makefileParams.compileDir
let home = makefileParams.omhome
let libFolder =simulationLibDir(simulationCodeTarget(),simCode)
<<
@echo off
::export PATH=<%home%>/lib/omc/cpp:$PATH REPLACE C: with /C/
SET PATH=<%home%>/lib/omc/cpp;%PATH%
REM ::export PATH=<%libFolder%>:$PATH REPLACE C: with /C/
SET PATH=<%makefileParams.omhome%>/bin;<%libFolder%>;%PATH%
<%moLib%>/OMCpp<%fileNamePrefix%>Main.exe -s <%start%> -e <%end%> -f <%stepsize%> -v <%intervals%> -y <%tol%> -i <%solver%> -r <%simulationLibDir(simulationCodeTarget(),simCode)%> -m <%moLib%> -R <%simulationResults(getRunningTestsuite(),simCode)%> -o <%settings.outputFormat%>
>>
end match)
Expand All @@ -1236,12 +1237,12 @@ match target
case "msvc" then
match simCode
case SIMCODE(makefileParams=MAKEFILE_PARAMS(__)) then
<< <%makefileParams.omhome%>/lib/omc/cpp/msvc >>
'<%makefileParams.omhome%>/lib/omc/cpp/msvc'
end match
else
match simCode
case SIMCODE(makefileParams=MAKEFILE_PARAMS(__)) then
<<<%makefileParams.omhome%>/lib/omc/cpp/ >>
'<%makefileParams.omhome%>/lib/omc/cpp/'
end match
end simulationLibDir;

Expand Down

0 comments on commit fe5bb5a

Please sign in to comment.