diff --git a/HopsanGenerator/src/generators/HopsanFMIGenerator.cpp b/HopsanGenerator/src/generators/HopsanFMIGenerator.cpp index 724c8e151..82480052c 100644 --- a/HopsanGenerator/src/generators/HopsanFMIGenerator.cpp +++ b/HopsanGenerator/src/generators/HopsanFMIGenerator.cpp @@ -827,8 +827,8 @@ void HopsanFMIGenerator::replaceNameSpace(const QString &savePath, int version) bool HopsanFMIGenerator::compileAndLinkFMU(const QString &fmuBuildPath, const QString &fmuStagePath, const QString &modelName, const int version, bool x64) const { const QString vStr = QString::number(version); - const QString fmiLibDir=mHopsanRootPath+"/dependencies/fmilibrary"; - const QString fmi4cIncludeDir=mHopsanRootPath+"/dependencies/fmi4c/include"; + const QString fmiLibDir="\""+mHopsanRootPath+"/dependencies/fmilibrary\""; + const QString fmi4cIncludeDir="\""+mHopsanRootPath+"/dependencies/fmi4c/include\""; printMessage("------------------------------------------------------------------------"); printMessage("Compiling FMU source code");