Commit Graph
47352 Commits
Author SHA1 Message Date
Brad King dbf5ae35b5 Merge topic 'scanbuild-fixes'
fe5ba71bd0 Tests: Suppress clang scan-build warning in UTF8 test
3cf71e8c7d cmLocalGenerator: Drop unused initializer in AddUnityBuild

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3958
2019-10-30 09:30:34 -04:00
Brad King f22d4809a4 Merge branch 'release-3.16' 2019-10-30 09:29:00 -04:00
Brad King 03a0d8ffd4 Merge topic 'fix-find_package-doc'
9a08818e54 Help: Add OPTIONAL_COMPONENTS to config mode signature of find_package.

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3961
2019-10-30 09:26:54 -04:00
Brad King 1efc4c9051 Merge branch 'fix-find_package-doc' into release-3.16
Merge-request: !3961
2019-10-30 09:26:09 -04:00
Brad King 28a8561885 Merge topic 'bootstrap-break'
1dbf485934 bootstrap: Avoid redundant compiler selection checks

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3959
2019-10-30 09:25:48 -04:00
Deniz Bahadir 9a08818e54 Help: Add OPTIONAL_COMPONENTS to config mode signature of find_package. 2019-10-30 09:24:36 -04:00
KWSys Upstream fe6725a1f7 KWSys 2019-10-30 (43131a7c)
Code extracted from:

    https://gitlab.kitware.com/utils/kwsys.git

at commit 43131a7c283dd6f198a2318a25e546a97ac356b3 (master).

Upstream Shortlog
-----------------

Brad King (1):
      cdd52ce1 RegularExpression: Initialize RegularExpressionMatch arrays fully

Todd Martin (1):
      569a1aed Encoding: Add ToWindowsExtendedPath support for wide string
2019-10-30 09:17:30 -04:00
Brad King 5ddcaae77c Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2019-10-30 (43131a7c)
2019-10-30 09:17:30 -04:00
Kitware Robot 5b64788c51 CMake Nightly Date Stamp 2019-10-30 00:01:07 -04:00
Brad King 39ac8b4eb5 ctest: Add --repeat-after-timeout option
Add an option to re-run tests if they timeout.  This will help tolerate
sporadic timeouts on busy machines.
2019-10-29 15:14:36 -04:00
Brad King 80c2c9d14c ctest: Add --repeat-until-pass option
Add an option to re-run tests if they fail.  This will help tolerate
sporadic failures.

Issue: #17010
Co-Author: Ben Boeckel <ben.boeckel@kitware.com>
Co-Author: Chuck Atkins <chuck.atkins@kitware.com>
2019-10-29 15:10:12 -04:00
Brad King 0187e52244 cmCTestRunTest: Use inline member initializers 2019-10-29 13:47:23 -04:00
Brad King 931d734a3f Merge branch 'bootstrap-break' into release-3.16
Merge-request: !3959
2019-10-29 12:05:13 -04:00
Brad King 1dbf485934 bootstrap: Avoid redundant compiler selection checks
In commit 6e613ff399 (bootstrap: Add infrastructure to detect threading
flags, 2017-11-28, v3.11.0-rc1~281^2~1) an extra level of nesting was
added to the selection loop, but the inner-most `break` command used to
exit the loop on success was not updated.  This caused the outer-most
loop to iterate unnecessarily and repeatedly try the same compilers
again.  In the case of compilers requiring a `-std=` flag, this may have
caused the oldest standard to be used instead of the newest.
2019-10-29 12:03:54 -04:00
Brad King fe5ba71bd0 Tests: Suppress clang scan-build warning in UTF8 test
Clang scan-build 7 reports:

```
Tests/CMakeLib/testUTF8.cxx:12:3: warning: 4th function call argument is an uninitialized value
  printf("[0x%02X,0x%02X,0x%02X,0x%02X]", static_cast<int>(d[0]),
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

Manual tracing of all call sites shows that all values are initialized.
2019-10-29 11:20:47 -04:00
Brad King 1fb4839225 Merge topic 'ccmake_progress_bar_and_log_display'
2086da1713 ccmake: Add output and progress bar release note
66d969fcc4 ccmake: Don't overwrite the last character of the title
1d0e557aed ccmake: Display output during configure and generate
c168e789df ccmake: Use the error display for all the logs
3300070cc2 ccmake: Display an ASCII progress bar in the status bar

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3942
2019-10-29 11:18:16 -04:00
Brad King c299d10a2e Merge topic 'FindPackageModeMakefileTest-isysroot'
c37f4eff5e FindPackageModeMakefileTest: macOS needs isysroot flag

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3956
2019-10-29 11:17:31 -04:00
Brad King b4b6a3e7e5 Merge branch 'release-3.16' 2019-10-29 11:15:57 -04:00
Brad King c5e22dfaea Merge topic 'swift-sdk-on-mac'
c10c9f839a Swift: Honor CMAKE_OSX_SYSROOT on Apple platforms

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3957
2019-10-29 11:15:09 -04:00
Brad King e90f6bacd5 Merge topic 'FindCurses-formw'
84ce473255 FindCurses: use formw when wide support is requested

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3947
2019-10-29 10:39:41 -04:00
Brad King 36516f0a50 Merge topic 'swift-parallel-jobs'
d9dd7cca66 Swift: correct flags for parallel jobs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3950
2019-10-29 10:34:17 -04:00
Brad King 8db410f336 Merge topic 'docs-find-vars'
a0a7a45dbc Help: Fix markup errors, improve wording of CMAKE_FIND... variable docs
049dbdd38c Help: Document that <PackageName>_ROOT applies to config packages too

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3952
2019-10-29 10:33:16 -04:00
Kitware Robot cffff0f17e CMake Nightly Date Stamp 2019-10-29 00:01:08 -04:00
Craig Scott c37f4eff5e FindPackageModeMakefileTest: macOS needs isysroot flag
macOS/Xcode no longer populate /usr/include.
Building with the compiler directly instead of using /usr/bin/c++
can result in missing headers without the -isysroot flag.

Relates: #19885
2019-10-29 07:14:08 +11:00
Brad King 3cf71e8c7d cmLocalGenerator: Drop unused initializer in AddUnityBuild
Fix a warning from clang-scanbuild:

    warning: Value stored to 'chunk' during its initialization is never read
    for (size_t itemsLeft = filtered_sources.size(), chunk = batchSize,
                                                     ^~~~~   ~~~~~~~~~

Simply remove the initializer.
2019-10-28 15:52:55 -04:00
Brad King 449a29296d Merge branch 'sdk-on-mac' into release-3.16
Merge-request: !3957
2019-10-28 13:39:52 -04:00
Brad King ee366b0273 Merge branch 'FindCurses-formw' into release-3.16
Merge-request: !3947
2019-10-28 12:04:26 -04:00
nick black 84ce473255 FindCurses: use formw when wide support is requested
Fixes: #19883
2019-10-28 12:03:11 -04:00
Brad King c10c9f839a Swift: Honor CMAKE_OSX_SYSROOT on Apple platforms
Pass the value to the Swift compiler driver via `-sdk`.  We already do
this for C/C++ via `-isysroot`.

This fixes command-line builds on macOS 10.15 with Xcode 11 Swift tools.

Fixes: #19880
2019-10-28 11:52:31 -04:00
Brad King f9193ca2dd Merge branch 'swift-parallel-jobs' into release-3.16
Merge-request: !3950
2019-10-28 11:37:39 -04:00
Saleem Abdulrasool d9dd7cca66 Swift: correct flags for parallel jobs
`-num-threads` is for the threading, not the job control.  Use `-j` to
launch the parallel jobs.  This enables parallel builds for Swift again
after driver updates preventing the parallelization through
`-num-threads`.
2019-10-28 11:36:57 -04:00
Brad King a575fbc3cb Merge branch 'docs-find-vars' into release-3.16
Merge-request: !3952
2019-10-28 11:33:05 -04:00
Brad King 92eb3a4475 Merge branch 'release-3.16' 2019-10-28 11:28:27 -04:00
Brad King 336a826f77 Merge topic 'framework-tests-multiarch-old-macos'
3e30c4cc1f Tests: Match file command output for older macOS (Framework test)
89ad3b3959 Tests: Prevent CMP0012 policy warnings in Framework test output

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3954
2019-10-28 10:10:37 -04:00
Brad King 62267715fe Merge branch 'framework-tests-multiarch-old-macos' into release-3.16
Merge-request: !3954
2019-10-28 10:09:29 -04:00
Brad King f289ab61e3 Merge topic 'cpack-nsis-uninstaller-name'
c97abc9688 CPack/NSIS: Add option for custom Uninstall filename

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3945
2019-10-28 10:06:40 -04:00
Brad King cb13aa580d Merge topic 'ExternalProject-git-no-recurse'
5bc6230741 ExternalProject: Option to turn off recursive update of git submodules

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3923
2019-10-28 10:05:45 -04:00
Craig Scott 6ad91699bf Merge branch 'release-3.16' 2019-10-28 21:56:49 +11:00
Craig Scott c79e9d8c21 Merge branch 'project-version-buffer-overflow' into release-3.16
Merge-request: !3948
2019-10-28 21:55:20 +11:00
Craig Scott f4749489fd Merge branch 'docs-FindPython-minor-grammar' into release-3.16
Merge-request: !3953
2019-10-28 21:54:30 +11:00
Craig Scott cdcc173e23 Merge topic 'project-version-buffer-overflow'
82cdb26c93 project: Fix potential buffer write-past-end for version components
15a0b0d046 Help: math() expressions must be representable as signed 64-bit

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3948
2019-10-28 06:50:22 -04:00
Craig Scott e03b677e70 Merge topic 'docs-FindPython-minor-grammar'
9914b90f4a Help: Minor wording cleanup for Python modules

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3953
2019-10-28 06:44:17 -04:00
Kitware Robot 0e4190ba9e CMake Nightly Date Stamp 2019-10-28 00:01:05 -04:00
Craig Scott 3e30c4cc1f Tests: Match file command output for older macOS (Framework test) 2019-10-27 23:48:41 +11:00
Craig Scott 89ad3b3959 Tests: Prevent CMP0012 policy warnings in Framework test output 2019-10-27 23:28:17 +11:00
Craig Scott 9914b90f4a Help: Minor wording cleanup for Python modules 2019-10-27 21:36:31 +11:00
Craig Scott a0a7a45dbc Help: Fix markup errors, improve wording of CMAKE_FIND... variable docs 2019-10-27 18:11:00 +11:00
Craig Scott 049dbdd38c Help: Document that <PackageName>_ROOT applies to config packages too
The original intent of <PackageName>_ROOT may have been for it
to apply only to Find modules, but the implementation of the
find_package() command treats modules and config packages the
same. Both result in a <PackageName>_ROOT variable being
pushed onto the stack of package roots. A config package can
also call other find_...() commands, the behavior doesn't apply
just to find modules.
2019-10-27 16:10:09 +11:00
Kitware Robot f3968470ce CMake Nightly Date Stamp 2019-10-27 00:01:04 -04:00
Craig Scott 82cdb26c93 project: Fix potential buffer write-past-end for version components
This fixes two errors: not accounting for the trailing null and a
misunderstanding of what std::numeric_limits::digits10 means.
2019-10-26 17:50:24 +11:00