Skip to content

Commit

Permalink
Added cppFlags to simulation makefile.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25051 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
mflehmig committed Mar 12, 2015
1 parent 138f2b4 commit 8f4e8a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/Template/CodegenCpp.tpl
Expand Up @@ -2845,6 +2845,7 @@ case "gcc" then
end match
let CC = if (compileForMPI) then "mpicc" else '<%makefileParams.ccompiler%>'
let CXX = if (compileForMPI) then "mpicxx" else '<%makefileParams.cxxcompiler%>'
let extraCppFlags = (getConfigStringList(CPP_FLAGS) |> flag => '<%flag%>'; separator=" ")
let MPIEnvVars = if (compileForMPI)
then 'OMPI_MPICC=<%makefileParams.ccompiler%> <%\n%>OMPI_MPICXX=<%makefileParams.cxxcompiler%>' else ""
<<
Expand All @@ -2867,7 +2868,7 @@ case "gcc" then
LDSYSTEMFLAGS_STATIC=<%staticLibs%> $(LDSYSTEMFLAGS)
LDMAINFLAGS=-L"<%makefileParams.omhome%>/lib/omc/cpp" -L"<%makefileParams.omhome%>/bin" -lOMCppOMCFactory -lOMCppModelicaUtilities -L"$(BOOST_LIBS)" $(BOOST_LOG_LIB) $(BOOST_THREAD_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(LINUX_LIB_DL) <%additionalLinkerFlags_GCC%> <%timeMeasureLink%>
LDMAINFLAGS_STATIC=<%staticLibs%> $(LDMAINFLAGS)
CPPFLAGS = $(CFLAGS)
CPPFLAGS = $(CFLAGS) <%extraCppFlags%>
SYSTEMFILE=OMCpp<%fileNamePrefix%><% if acceptMetaModelicaGrammar() then ".conv"%>.cpp
MAINFILE = OMCpp<%fileNamePrefix%>Main.cpp
MAINOBJ=OMCpp<%fileNamePrefix%>Main$(EXEEXT)
Expand Down

0 comments on commit 8f4e8a8

Please sign in to comment.