mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-10 07:40:03 -06:00
Help: Document warning about multiple source paths
Although passing multiple source paths was never documented, it was not diagnosed by CMake 3.22 and below. In CMake 3.23 we now diagnose extra paths and warn. Document this change and add a release note. Issue: #23334
This commit is contained in:
@@ -171,6 +171,13 @@ is used for the other. For example:
|
||||
``cmake -B build -S src`` ``src`` ``build``
|
||||
============================== ============ ===========
|
||||
|
||||
.. versionchanged:: 3.23
|
||||
|
||||
CMake warns when multiple source paths are specified. This has never
|
||||
been officially documented or supported, but older versions accidentally
|
||||
accepted multiple source paths and used the last path specified.
|
||||
Avoid passing multiple source path arguments.
|
||||
|
||||
After generating a buildsystem one may use the corresponding native
|
||||
build tool to build the project. For example, after using the
|
||||
:generator:`Unix Makefiles` generator one may run ``make`` directly:
|
||||
|
||||
@@ -225,6 +225,12 @@ CPack
|
||||
Deprecated and Removed Features
|
||||
===============================
|
||||
|
||||
* :manual:`cmake(1)` now warns when multiple source paths are specified,
|
||||
as in ``cmake -S src1 src2``. This has never been officially documented
|
||||
or supported, but older versions accidentally accepted multiple source
|
||||
paths and used the last path specified. Update scripts to avoid
|
||||
passing multiple source path arguments.
|
||||
|
||||
* The :manual:`cpack(1)` undocumented ``OSXX11`` generator has been removed.
|
||||
|
||||
Other Changes
|
||||
|
||||
Reference in New Issue
Block a user