Changeset View
Changeset View
Standalone View
Standalone View
projectmanagers/cmake/settings/cmakepreferences.cpp
Show First 20 Lines • Show All 289 Lines • ▼ Show 20 Line(s) | |||||
290 | void CMakePreferences::createBuildDir() | 290 | void CMakePreferences::createBuildDir() | ||
291 | { | 291 | { | ||
292 | CMakeBuildDirChooser bdCreator; | 292 | CMakeBuildDirChooser bdCreator; | ||
293 | bdCreator.setSourceFolder( m_srcFolder ); | 293 | bdCreator.setSourceFolder( m_srcFolder ); | ||
294 | 294 | | |||
295 | // NOTE: (on removing the trailing slashes) | 295 | // NOTE: (on removing the trailing slashes) | ||
296 | // Generally, we have no clue about how shall a trailing slash look in the current system. | 296 | // Generally, we have no clue about how shall a trailing slash look in the current system. | ||
297 | // Moreover, the slash may be a part of the filename. | 297 | // Moreover, the slash may be a part of the filename. | ||
298 | // It may be '/' or '\', so maybe should we rely on CMake::allBuildDirs() for returning well-formed pathes? | 298 | // It may be '/' or '\', so maybe should we rely on CMake::allBuildDirs() for returning well-formed paths? | ||
299 | QStringList used = CMake::allBuildDirs( m_project ); | 299 | QStringList used = CMake::allBuildDirs( m_project ); | ||
300 | bdCreator.setAlreadyUsed(used); | 300 | bdCreator.setAlreadyUsed(used); | ||
301 | bdCreator.setCMakeBinary(Path(CMake::findExecutable())); | 301 | bdCreator.setCMakeBinary(Path(CMake::findExecutable())); | ||
302 | 302 | | |||
303 | if(bdCreator.exec()) | 303 | if(bdCreator.exec()) | ||
304 | { | 304 | { | ||
305 | QString newbuilddir = bdCreator.buildFolder().toLocalFile(); | 305 | QString newbuilddir = bdCreator.buildFolder().toLocalFile(); | ||
306 | m_prefsUi->buildDirs->addItem(newbuilddir); | 306 | m_prefsUi->buildDirs->addItem(newbuilddir); | ||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |