mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-11 12:00:48 -05:00
Merge topic 'ninja-multi-segfault' into release-3.19
f4215ee57dNinja Multi-Config: Fix segfault when installing an export18372afcd4Help: Fix documentation for Ninja Multi-Config's build.ninja Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5355
This commit is contained in:
@@ -21,8 +21,7 @@ are intended to be run with ``ninja -f build-<Config>.ninja``. A
|
||||
|
||||
``cmake --build . --config <Config>`` will always use ``build-<Config>.ninja``
|
||||
to build. If no ``--config`` argument is specified, ``cmake --build .`` will
|
||||
default to ``build-Debug.ninja``, unless a ``build.ninja`` is generated (see
|
||||
below), in which case that will be used instead.
|
||||
use ``build.ninja``.
|
||||
|
||||
Each ``build-<Config>.ninja`` file contains ``<target>`` targets as well as
|
||||
``<target>:<Config>`` targets, where ``<Config>`` is the same as the
|
||||
|
||||
@@ -2532,14 +2532,14 @@ bool cmGlobalNinjaMultiGenerator::OpenBuildFileStreams()
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!this->DefaultFileConfig.empty()) {
|
||||
if (!this->OpenFileStream(this->DefaultFileStream, NINJA_BUILD_FILE)) {
|
||||
return false;
|
||||
}
|
||||
*this->DefaultFileStream
|
||||
<< "# Build using rules for '" << this->DefaultFileConfig << "'.\n\n"
|
||||
<< "include " << GetNinjaImplFilename(this->DefaultFileConfig) << "\n\n";
|
||||
if (!this->OpenFileStream(this->DefaultFileStream, NINJA_BUILD_FILE)) {
|
||||
return false;
|
||||
}
|
||||
*this->DefaultFileStream << "# Build using rules for '"
|
||||
<< this->DefaultFileConfig << "'.\n\n"
|
||||
<< "include "
|
||||
<< GetNinjaImplFilename(this->DefaultFileConfig)
|
||||
<< "\n\n";
|
||||
|
||||
// Write a comment about this file.
|
||||
*this->CommonFileStream
|
||||
|
||||
Reference in New Issue
Block a user