forked from qt-creator/qt-creator
CMakePM: add ${pathSepList} from CMakePresets version 5
Task-number: QTCREATORBUG-24555 Change-Id: Ic0bf0d7029267c71352294de428921ff52fe4359 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <utils/environment.h>
|
||||
#include <utils/filepath.h>
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/osspecificaspects.h>
|
||||
|
||||
namespace CMakeProjectManager::Internal::CMakePresets::Macros {
|
||||
|
||||
@@ -43,6 +44,8 @@ static void expandAllButEnv(const PresetsDetails::ConfigurePreset &preset,
|
||||
value.replace("${generator}", preset.generator.value());
|
||||
|
||||
value.replace("${hostSystemName}", getHostSystemName(sourceDirectory.osType()));
|
||||
value.replace("${pathListSep}",
|
||||
Utils::OsSpecificAspects::pathListSeparator(sourceDirectory.osType()));
|
||||
}
|
||||
|
||||
static void expandAllButEnv(const PresetsDetails::BuildPreset &preset,
|
||||
@@ -57,6 +60,8 @@ static void expandAllButEnv(const PresetsDetails::BuildPreset &preset,
|
||||
value.replace("${sourceDirName}", sourceDirectory.fileName());
|
||||
|
||||
value.replace("${presetName}", preset.name);
|
||||
value.replace("${pathListSep}",
|
||||
Utils::OsSpecificAspects::pathListSeparator(sourceDirectory.osType()));
|
||||
}
|
||||
|
||||
static QString expandMacroEnv(const QString ¯oPrefix,
|
||||
|
||||
Reference in New Issue
Block a user