From 58daf2604d3e1837092588aec514c8754023dc66 Mon Sep 17 00:00:00 2001 From: Robert Braun Date: Thu, 7 Mar 2024 09:55:40 +0100 Subject: [PATCH] Add quotation marks around include directories in FMI export Makefile --- HopsanGenerator/src/generators/HopsanFMIGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");