Skip to content

Commit

Permalink
- fmilib needs shlwapi, not OpenModelicaFMIRuntimeC
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24918 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Mar 5, 2015
1 parent adae419 commit 582614e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -9593,8 +9593,8 @@ algorithm
str = System.getCorbaLibs();
then ({str},{});

case Absyn.STRING("OpenModelicaFMIRuntimeC")
then ({"OpenModelicaFMIRuntimeC.lib","shlwapi.lib"},{});
case Absyn.STRING("fmilib")
then ({"fmilib.lib","shlwapi.lib"},{});

// If the string starts with a -, it's probably -l or -L gcc flags
case Absyn.STRING(str)
Expand Down Expand Up @@ -9649,8 +9649,8 @@ algorithm
str = System.getCorbaLibs();
then ({str},{});

case Absyn.STRING("OpenModelicaFMIRuntimeC")
then (if System.os()=="Windows_NT" then {"-lOpenModelicaFMIRuntimeC","-lfmilib","-lshlwapi"} else {"-lOpenModelicaFMIRuntimeC"},{});
case Absyn.STRING("fmilib")
then (if System.os()=="Windows_NT" then {"-lfmilib","-lshlwapi"} else {"-lfmilib"},{});

case Absyn.STRING(str)
equation
Expand Down

0 comments on commit 582614e

Please sign in to comment.