| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
This returns a relative path if it does not start in `../`.
|
|
|
|
|
|
|
|
|
|
|
| |
In commit 7f89053953 (cmSystemTools: Return KWSys Status from CreateLink
and CreateSymlink, 2021-04-15) we just took the `-err` from libuv and
treated it as a POSIX error. This is accurate on POSIX, but on Windows
does not match the POSIX error codes.
Use `uv_fs_get_system_error` to get the actual system error code.
This requires libuv 1.38 or higher. Require that for Windows, but
fall back to the previous approach on POSIX.
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
f881b4e4cc cmCPackDebGenerator: Remove unused local variable
5ad8862318 Source: Convince NVHPC that RAII variables are used
1898f9dd82 cmFileCommand: Remove unused local variable
6a003c6f35 cmSystemTools: Avoid unreachable code warning on NVHPC
16275c7f82 LexerParser: Suppress NVHPC warnings in generated code
cefda16d35 LexerParser: Regenerate parsers with bison 3.7.5
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6049
|
| | |
|
|/
|
|
| |
Detect MSYS as CYGWIN, with the required adaptations.
|
| |
|
| |
|
|
|
|
|
|
| |
KWSys as of 2021-04-14 changed the return type of `SystemTools`
operations from `bool` to `Status`. Update our call sites.
This may improve error reporting accuracy in a few places.
|
|\
| |
| |
| |
| |
| |
| | |
317a477283 OpenBSD: Fix system feature definitions
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6000
|
| |
| |
| |
| |
| |
| |
| |
| | |
Since commit f034b0f663 (CMake compilation: do not use compiler
extensions, 2020-03-14, v3.18.0-rc1~494^2), some sources explicitly
enable needed system APIs on some platforms using definitions like
`_POSIX_C_SOURCE` and `_XOPEN_SOURCE`. Drop the definitions for
OpenBSD, which provides the POSIX APIs by default.
|
| |
| |
| |
| | |
And use it for CMAKE_HOST_SYSTEM_NAME and CMAKE_SYSTEM_NAME.
|
| | |
|
| | |
|
|/ |
|
|
|
|
| |
Avoid relinking before installation.
|
|
|
|
| |
We use the `CMake_` prefix for options affecting CMake itself.
|
|
|
|
| |
We use the `CMake_` prefix for options affecting CMake itself.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Revert commit d78c22aa64 (cmSystemTools: Improve RenameFile on Windows
with MOVEFILE_WRITE_THROUGH, 2020-08-25, v3.19.0-rc1~243^2~3). Using
this flag causes the operation to fail frequently in some environments.
Drop it for now pending further investigation.
Fixes: #21571
|
|
|
|
| |
And switch the ordering of "Help" and "About".
|
|
|
|
| |
Use cmStrCat(), cmStrLen(), and cmHasLiteralSuffix().
|
| |
|
|
|
|
| |
Fixes: #21125
|
|
|
|
|
|
|
| |
Create RAII class SaveRestoreFileAttributes to manage Windows Search
Indexing. Turn it off temporarily while renaming a directory.
Issue: #19580
|
|
|
|
| |
Issue: #19580
|
|
|
|
| |
Issue: #19580
|
|
|
|
|
|
|
| |
Add this flag to tell `MoveFileExW` to flush the rename to disk before
returning.
Issue: #19580
|
| |
|
| |
|
|
|
|
| |
Inspired-by: Ron W Moore <webbtrail@gmail.com>
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
85a945a607 Restore handling of build directory inside a symlinked path
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4963
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In commit dd8365b3f1 (Merge branch 'upstream-KWSys' into update-kwsys,
2020-04-06, v3.18.0-rc1~397^2) we imported KWSys commit `019afb6ea`
(SystemTools: Drop GetCurrentWorkingDirectory 'collapse' argument,
2020-04-03). That caused `GetCurrentWorkingDirectory` to no longer send
paths through the KWSys translation map and broke CMake's detection of
the absolute path to a build directory containing a symbolic link.
Add our own `cmSystemTools::GetCurrentWorkingDirectory` wrapper around
the KWSys method in order to restore that mapping.
Test-case-by: Ben Boeckel <ben.boeckel@kitware.com>
Issue: #16228
Fixes: #20900
|
|/
|
|
|
|
|
| |
`uv_default_loop()` can return `nullptr` when running on a Linux kernel
configured without `CONFIG_EVENTFD`.
Fixes: #20899
|
|
|
|
| |
Fixes: #20666
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
b3bacf0152 cmCPackArchiveGenerator: support multithreaded compression
b71d385ed4 cmCPackArchiveGenerator: support setting archive options
948aa8bd1c cmArchiveWrite: support setting archive filter options
b9c17de023 cmArchiveWrite: split out opening the file
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Cristian Adam <cristian.adam@gmail.com>
Merge-request: !3195
|
| |
| |
| |
| |
| | |
This allows options to be set before the "header" phase of libarchive's
API.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
ec7928ef26 use _s to construct static string_views at several places
94de927cab VS10Generator: avoid many string allocations
8ca2504a4d use string_views to avoid memory allocations
761f1adcae check for a valid URL scheme before starting to do any splitting
ef778d77e0 replace std::string::substr() with operations that do not allocate memory
77616f4681 pass cm::string_view to cmVisualStudioSlnParser::ParseTag()
ada6a3226f use cm::string_view for language extension lookups
48adc29721 replace "std::string::find(x) == 0" with cmHasPrefix()
...
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4501
|
| |/ |
|
|/
|
|
|
|
|
| |
For now, compiler extensions are no longer activated on CMake sources.
However these extensions are still used for various third parties.
This MR is a partial answer to the issue #20454.
|
|
|
|
| |
Update internals of various classes
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On Windows, libuv uses `_CrtSetReportHook` to install a handler it uses
to suppress assertions on invalid file descriptors in `_get_osfhandle`.
This removes the handler we install in CI environments to suppress
interactive popups. Move installation of our handler to after libuv is
initialized so that our handler is actually used.
Unfortunately this also removes libuv's handler and so may cause Debug
builds under CI to abort on invalid file descriptors instead of simply
converting them to `INVALID_HANDLE_VALUE`. If this becomes a problem
we may need to modify libuv to make its hook more configurable.
|
|
|
| |
Fixes: #19909
|
|
|
|
|
| |
Run the `clang-format.bash` script to update our C and C++ code to a new
include order `.clang-format`. Use `clang-format` version 6.0.
|
| |
|