diff --git a/src/libs/utils/buildablehelperlibrary.cpp b/src/libs/utils/buildablehelperlibrary.cpp index 0a2459adc10..f1b9f4f34bd 100644 --- a/src/libs/utils/buildablehelperlibrary.cpp +++ b/src/libs/utils/buildablehelperlibrary.cpp @@ -7,7 +7,6 @@ #include "qtcprocess.h" #include -#include #include #include @@ -84,10 +83,10 @@ FilePath BuildableHelperLibrary::findSystemQt(const Environment &env) FilePaths BuildableHelperLibrary::findQtsInEnvironment(const Environment &env, int maxCount) { FilePaths qmakeList; - std::set canonicalEnvPaths; + std::set canonicalEnvPaths; const FilePaths paths = env.path(); for (const FilePath &path : paths) { - if (!canonicalEnvPaths.insert(path.toFileInfo().canonicalFilePath()).second) + if (!canonicalEnvPaths.insert(path.canonicalPath()).second) continue; const FilePath qmake = findQmakeInDir(path); if (qmake.isEmpty())