Commit 2dfa1332 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Allow KDEV_DEFAULT_INSTALL_PREFIX specify a default install prefix

This way we can teach KDevelop where we should be installing our builds
parent 8019461c
......@@ -68,6 +68,11 @@ CMakeBuildDirChooser::CMakeBuildDirChooser(QWidget* parent)
connect(m_chooserUi->extraArguments, &KComboBox::editTextChanged, this, &CMakeBuildDirChooser::updated);
connect(m_chooserUi->availableBuildDirs, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &CMakeBuildDirChooser::adoptPreviousBuildDirectory);
const auto defaultInstallPrefix = ICore::self()->runtimeController()->currentRuntime()->getenv("KDEV_DEFAULT_INSTALL_PREFIX");
if (!defaultInstallPrefix.isEmpty()) {
m_chooserUi->installPrefix->setPath(QFile::decodeName(defaultInstallPrefix));
}
updated();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment