Skip to content

Commit

Permalink
OMCompiler: Relocatable compilation tools (#12039)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Feb 29, 2024
1 parent c9f5345 commit 6d03b27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions OMCompiler/Compiler/Script/CevalScriptBackend.mo
Expand Up @@ -3509,8 +3509,8 @@ algorithm
fmuSourceDir := fmutmp+"/sources/";
quote := "'";
dquote := if isWindows then "\"" else "'";
CC := "-DCMAKE_C_COMPILER=" + dquote + makefileParams.ccompiler + dquote;
CXX := "-DCMAKE_CXX_COMPILER=" + dquote + makefileParams.cxxcompiler + dquote;
CC := "-DCMAKE_C_COMPILER=" + dquote + System.basename(makefileParams.ccompiler) + dquote;
CXX := "-DCMAKE_CXX_COMPILER=" + dquote + System.basename(makefileParams.cxxcompiler) + dquote;
defaultFmiIncludeDirectoy := dquote + Settings.getInstallationDirectoryPath() + "/include/omc/c/fmi" + dquote;

// Set build type
Expand Down
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/Util/Autoconf.mo.in
Expand Up @@ -9,7 +9,7 @@ encapsulated package Autoconf
constant String platform = if isWindows and is64Bit then "WIN64" elseif isWindows then "WIN32" else "Unix";

constant String make = "@OMC_MAKE_EXE@";
constant String cmake = "\"@OMC_CMAKE_EXE@\"";
constant String cmake = "cmake";

constant String exeExt = if isWindows then ".exe" else "";
constant String dllExt = "@SHREXT@";
Expand Down

0 comments on commit 6d03b27

Please sign in to comment.