Skip to content

Commit

Permalink
FMI2 Cpp: fix name of FMU binary for hierarchical models
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25309 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
rfranke committed Mar 30, 2015
1 parent 0b93dff commit 26bd258
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/Template/CodegenFMUCpp.tpl
Expand Up @@ -541,16 +541,16 @@ case SIMCODE(modelInfo=MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__), simula
.PHONY: <%modelName%>.fmu $(CPPFILES) clean

<%modelName%>.fmu: $(OFILES)
<%\t%>$(CXX) -shared -I. -o <%modelName%>$(DLLEXT) $(OFILES) $(CFLAGS) $(LDFLAGS) $(LIBS)
<%\t%>$(CXX) -shared -I. -o <%fileNamePrefix%>$(DLLEXT) $(OFILES) $(CFLAGS) $(LDFLAGS) $(LIBS)
<%\t%>rm -rf binaries
<%\t%><%mkdir%> -p "binaries/$(PLATFORM)"
<%\t%>cp <%modelName%>$(DLLEXT) "binaries/$(PLATFORM)/"
<%\t%>cp <%fileNamePrefix%>$(DLLEXT) "binaries/$(PLATFORM)/"
<%\t%>rm -f <%modelName%>.fmu
<%\t%>zip -r "<%modelName%>.fmu" modelDescription.xml binaries binaries/$(PLATFORM) binaries/$(PLATFORM)/<%modelName%>$(DLLEXT)
<%\t%>rm -rf binaries

clean:
<%\t%>rm $(SRC) <%modelName%>$(DLLEXT)
<%\t%>rm $(SRC) <%fileNamePrefix%>$(DLLEXT)

>>
end fmuMakefile;
Expand Down

0 comments on commit 26bd258

Please sign in to comment.