forked from qt-creator/qt-creator
Utils: FilePathify Environment::{ap,pre}pendOrSetPath etc
Change-Id: Idfa5ec247337570936b0236cab9d3a5669792ca0 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -1022,10 +1022,8 @@ const QList<BuildTargetInfo> CMakeBuildSystem::appTargets() const
|
||||
|
||||
// Workaround for QTCREATORBUG-19354:
|
||||
bti.runEnvModifier = [this, buildKey](Environment &env, bool enabled) {
|
||||
if (enabled) {
|
||||
const Utils::FilePaths paths = librarySearchPaths(this, buildKey);
|
||||
env.prependOrSetLibrarySearchPaths(Utils::transform(paths, &FilePath::toString));
|
||||
}
|
||||
if (enabled)
|
||||
env.prependOrSetLibrarySearchPaths(librarySearchPaths(this, buildKey));
|
||||
};
|
||||
|
||||
appTargetList.append(bti);
|
||||
|
||||
Reference in New Issue
Block a user