| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
The ENABLE_LZ4 option was added.
|
|
|
|
|
| |
cmArchiveWrite uses the gzip:timestamp write filter option which was not
available until v3.1.0.
|
|
|
|
|
|
|
|
|
| |
It is provided by `functional`, not `utility`. Fix the mapping added by
commit 276d3c7afe (IWYU: Add workaround mapping for std::hash,
2018-07-31). Also generalize the workaround from commit v3.12.0-rc1~39^2~1
(IWYU: Define a macro to tell code it is preprocessing for iwyu,
2018-05-25) to allow local builds to configure specific flags. This
is needed because iwyu behaves differently in different environments.
|
|
|
|
|
|
|
| |
There are some cases where satisfying IWYU breaks compilation, such as
forward-declaring the `std::hash<>` template with C++ standard libraries
that use an inline namespace inside `std`. Define a macro during
include-what-you-use preprocessing so that code can adapt.
|
|\
| |
| |
| |
| |
| |
| | |
f5f72ff844 Explicitly require LibUV 1.10 or higher to build CMake
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1966
|
| |
| |
| |
| | |
CMake 3.11 now uses `uv_translate_sys_error` introduced in LibUV 1.10.
|
|/
|
|
|
|
|
|
|
|
| |
Compute a default for `BUILD_CursesDialog` by building a small test
project that uses curses. Disable `ccmake` by default if it fails,
and do not search for Curses as part of the main build. This avoids
creating FindCurses cache entries when we are not considering ccmake.
If `BUILD_CursesDialog` is enabled (e.g. by the user) then warn if
curses cannot be found.
|
|
|
|
|
|
|
|
|
| |
Some environments require linking to thread libraries for `std::thread`.
Express this direct dependency of CMakeLib explicitly. Previously this
was done indirectly through our bundled libuv, but that does not work
when using a system libuv.
Fixes: #17757
|
|
|
|
|
|
|
|
|
|
| |
Add a check that a simple source file can compile as C++17 that uses
some of the features we need. Do this only when hosted by CMake 3.8
or above because those versions are aware of C++17.
Check for unordered_map as we do in bootstrap since commit 375eca7881
(bootstrap: Check support for unordered_map from compiler mode,
2017-11-30). Also maintain the existing C++14 cstdio check.
|
|
|
|
|
|
| |
The check for C++14 and cstdio is a special case of the more general
problem of checking that the compiler's C++14 mode supports everything
we need. Rename the checks accordingly.
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
08353542 clang-tidy: Clarify comment explaining purpose of CLANG_TIDY_SHA1
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1497
|
| |
| |
| |
| | |
Suggested-by: Bill Hoffman <bill.hoffman@kitware.com>
|
|/
|
|
|
|
|
| |
Do not obscure IWYU's report with warnings from its internal Clang.
We have other testing for such warnings. Also, when compiling with
a non-Clang compiler we might use warning options that IWYU's Clang
does not understand, and we don't want to see warnings about that.
|
|
|
|
|
|
|
|
|
|
| |
Currently a change to the clang-tidy configuration remains unnoticed for
incremental builds in the way that it won't trigger a rebuild. This can be
considered a missing dependency that this patch fixes by introducing a
compile time definition (-DCLANG_TIDY_SHA1) that triggers a rebuild upon
change. Currently this only applies to the target CMakeLib.
Signed-off-by: Matthias Maennich <matthias@maennich.net>
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
fd4fd9a2 Require C++11 to build CMake itself
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1132
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
CMake can now compile as C++11 on all supported platforms. Check that
std::unique_ptr is available and fail early if missing. This will allow
us to use C++11 more broadly in CMake's implementation (previously it
was restricted to the serve mode implementation).
Co-Author: Daniel Pfeifer <daniel@pfeifer-mail.de>
|
|/
|
|
|
| |
This simplifies some policy settings and use of third-party
libraries with imported targets.
|
|
|
|
|
|
|
| |
The libuv library provides many useful platform abstractions and better
process management than KWSys. We'd like to use it everywhere instead
of just in the server mode. Drop the `CMAKE_USE_LIBUV` option and use
libuv everywhere except during bootstrap.
|
|
|
|
|
|
|
|
| |
CMake will soon require both C++11 and libuv to build. Neither of
these works on HP-UX, so unfortunately we need to drop support for
the platform until someone can get them working.
Issue: #17137
|
|
|
|
| |
With our last update of libuv, Cygwin is now supported.
|
| |
|
|
|
|
| |
Add the flags early enough be used in the checks for C++ features.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Teach Sphinx and our own install rules to skip a `Help/dev` directory.
This will give us a place to put developer-only documentation that
should not be included in the user-facing documentation. Add a
placeholder README.
|
|
|
|
| |
We've ported our libuv to this platform so we can build it now.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Two issues need to be resolved to add Solaris 10
libuv support:
1. libuv needs to provide alternative functionality
for systems that do not support mkdtemp()
2. cmake should set SUNOS_NO_IFADDRS for Solaris 10
builds (but not Solaris 11)
|
|
|
|
| |
Create a CMAKE_USE_SYSTEM_LIBRHASH option.
|
|
|
|
|
|
|
|
| |
Update `ustd.h` to include KWSys Large File Support configuration so
that consistent stream libraries are used (on AIX with XL).
Add a `cm_rhash.h` header to include the CMake-provided copy of the
`rhash.h` header from CMake sources.
|
|
|
|
|
|
| |
The switch to use UTF-8 encoding has been defaulted to on for quite some
time since commit v3.2.0-rc1~116^2 (Encoding: Switch to use UTF-8
internally by default on Windows, 2014-12-26).
|
|
|
|
|
|
| |
Use KWSys ConsoleBuf to replace the `streambuf` on `std::cout` and
`std::cerr` so that process output can be encoded correctly for display
in a Windows console.
|
|
|
|
| |
Expat is built anyway.
|
| |
|
| |
|
|
|
|
|
|
| |
Older versions of libuv did not have the uv_loop_close API. It first
showed up in unstable releases ~ v0.11.20 but was not available in
a stable release until v1.0
|
| |
|
|
|
|
|
|
|
| |
Add a `CMake_TEST_SERVER_MODE` option that can be set in testing builds
to enable/disable server mode tests explicitly. This will allow testing
in combination with `CMake_TEST_EXTERNAL_CMAKE` or for server mode to be
built on systems that have a python version that cannot run the test.
|
|
|
|
|
|
|
|
| |
Provide a way for scripts building CMake to enable server mode
explicitly and assume the risk of a build failure if it is not
supported. This will allow such scripts to ensure that server
mode is available if the build succeeds. It also allows scripts
to explicitly disable server mode even if it would be supported.
|
|
|
|
| |
The latter is a better name for making it a public-facing option.
|
|
|
|
|
| |
CMake is frequently built from source via bootstrap.
There is no reason we cannot support server mode.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Per-source copyright/license notice headers that spell out copyright holder
names and years are hard to maintain and often out-of-date or plain wrong.
Precise contributor information is already maintained automatically by the
version control tool. Ultimately it is the receiver of a file who is
responsible for determining its licensing status, and per-source notices are
merely a convenience. Therefore it is simpler and more accurate for
each source to have a generic notice of the license name and references to
more detailed information on copyright holders and full license terms.
Our `Copyright.txt` file now contains a list of Contributors whose names
appeared source-level copyright notices. It also references version control
history for more precise information. Therefore we no longer need to spell
out the list of Contributors in each source file notice.
Replace CMake per-source copyright/license notice headers with a short
description of the license and links to `Copyright.txt` and online information
available from "https://cmake.org/licensing". The online URL also handles
cases of modules being copied out of our source into other projects, so we
can drop our notices about replacing links with full license text.
Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority
of the replacements mechanically. Manually fix up shebang lines and trailing
newlines in a few files. Manually update the notices in a few files that the
script does not handle.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds a bare-bones cmake-server implementation and makes it possible
to start that with "cmake -E server".
Communication happens via stdin/stdout for now.
Protocol is based on Json objects surrounded by magic strings
("[== CMake Server ==[" and "]== CMake Server ==]"), which simplifies
Json parsing significantly.
This patch also defines an interface used to implement different
versions of the protocol spoken by the server, but does not include
any protocol implementaiton.
|
|
|
|
|
| |
This will enable use of features such as ALIAS targets within CMake's
own build.
|
|
|
|
| |
Some work may be needed to port to HP-UX.
|
|
|
|
| |
Some work may be needed to port to SPARC with Solaris and Linux.
|