forked from qt-creator/qt-creator
McuSupport: Set Kit's CMAKE_PREFIX_PATH for Desktop version
... make sure that CMake really finds the right Qt installation Change-Id: I90083e4522111eac9b3658f4351536cfc798bf98 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
This commit is contained in:
committed by
Aurindam Jana
parent
cb908779a9
commit
aaef25f708
@@ -517,8 +517,11 @@ static void setKitCMakeOptions(ProjectExplorer::Kit *k, const BoardOptions* boar
|
||||
if (!board->qulPlatform().isEmpty())
|
||||
config.append(CMakeConfigItem("QUL_PLATFORM",
|
||||
board->qulPlatform().toUtf8()));
|
||||
if (isDesktop(board)) // TODO: Hack! Implement color depth variants of all targets
|
||||
if (isDesktop(board)) {
|
||||
config.append(CMakeConfigItem("CMAKE_PREFIX_PATH", "%{Qt:QT_INSTALL_PREFIX}"));
|
||||
// TODO: Hack! Implement color depth variants of all targets
|
||||
config.append(CMakeConfigItem("QUL_COLOR_DEPTH", "32"));
|
||||
}
|
||||
CMakeConfigurationKitAspect::setConfiguration(k, config);
|
||||
if (Utils::HostOsInfo::isWindowsHost())
|
||||
CMakeGeneratorKitAspect::setGenerator(k, "NMake Makefiles JOM");
|
||||
|
Reference in New Issue
Block a user