mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
Merge topic 'cmake-presets-no-path-arg-warning'
cb2d01c182 CMakePresets.json: Don't warn if no path argument is given
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5455
This commit is contained in:
+7
-1
@@ -1005,9 +1005,15 @@ void cmake::SetArgs(const std::vector<std::string>& args)
|
||||
|
||||
const bool haveSourceDir = !this->GetHomeDirectory().empty();
|
||||
const bool haveBinaryDir = !this->GetHomeOutputDirectory().empty();
|
||||
const bool havePreset =
|
||||
#ifdef CMAKE_BOOTSTRAP
|
||||
false;
|
||||
#else
|
||||
!presetName.empty();
|
||||
#endif
|
||||
|
||||
if (this->CurrentWorkingMode == cmake::NORMAL_MODE && !haveSourceDir &&
|
||||
!haveBinaryDir) {
|
||||
!haveBinaryDir && !havePreset) {
|
||||
this->IssueMessage(
|
||||
MessageType::WARNING,
|
||||
"No source or binary directory provided. Both will be assumed to be "
|
||||
|
||||
Reference in New Issue
Block a user