summaryrefslogtreecommitdiff
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Allow RunCMake.MaxRecursionDepth to test public-facing default limitBrad King2023-03-131-3/+1
| | | | | | | | Previously we compiled in a smaller default limit during nightly testing and CI builds, so we were not testing the same default limit that end-users will see. Instead, set the limit during testing using an environment variable so that we can unset it when testing the default limit in `RunCMake.MaxRecursionDepth`.
* find_package: Enforce maximum nesting depth below maximum recursion depthBrad King2023-03-131-0/+15
| | | | | | The stack usage for nested `find_package` calls is much larger than for other kinds of recursion, so enforce a lower limit to avoid stack overflow.
* Add CMAKE_MAXIMUM_RECURSION_DEPTH environment variableBrad King2023-03-131-0/+6
| | | | | | | Extend the recursion limit controls added by commit a6982cff0d (cmMakefile: Impose maximum recursion limit, 2018-12-14, v3.14.0-rc1~82^2) with an environment variable that is used if the CMake variable of the same name is not set.
* cmMakefile: Factor out helper to get recursion depth limitBrad King2023-03-132-10/+18
|
* cmMakefile: Store recursion depth limit as size_tBrad King2023-03-134-11/+8
|
* cmMakefile: Improve parsing of CMAKE_MAXIMUM_RECURSION_DEPTH variableBrad King2023-03-091-6/+5
|
* Merge topic 'windows-arm64-recursion-limit'Brad King2023-03-091-0/+2
|\ | | | | | | | | | | | | c68ebee9c2 cmake: Reduce default recursion depth when compiling for Windows ARM64 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8302
| * cmake: Reduce default recursion depth when compiling for Windows ARM64Brad King2023-03-081-0/+2
| | | | | | | | | | | | | | | | On Windows ARM64 the stack frames are large enough (at least in Debug builds) that CMake language recursion to depth 1000 overflows the stack. Reduce the limit for this compiler. Suggested-by: Bill Hoffman <bill.hoffman@kitware.com>
* | CMake Nightly Date StampKitware Robot2023-03-091-1/+1
|/
* Merge topic 'vs-props-order'Brad King2023-03-081-1/+1
|\ | | | | | | | | | | | | d3c4c6d630 VS: Import default C++ props file before toolset-specific props file Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8294
| * VS: Import default C++ props file before toolset-specific props fileMatthew Voss2023-03-071-1/+1
| | | | | | | | | | | | | | This avoids overwriting toolset-specific settings like `VCRedistDir` with default settings. Fixes: #22420
* | Merge topic 'revert-vs-BuildInParallel'Brad King2023-03-081-7/+4
|\ \ | | | | | | | | | | | | | | | | | | abb1c12162 VS: Revert "Build custom commands concurrently when possible" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8297
| * | VS: Revert "Build custom commands concurrently when possible"Brad King2023-03-071-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 33c15ae2b9 (VS: Build custom commands concurrently when possible, 2023-01-19, v3.26.0-rc1~56^2) we add `BuildInParallel` to custom commands in `.vcxproj` files. However, this can break existing projects that implicitly rely on serial execution of custom commands. For example, custom commands in our FindCUDA module run MSVC (via nvcc) with a common `vc*.pdb` file, and therefore cannot run in parallel. Revert use of `BuildInParallel` while leaving most of the infrastructure for it in place. It can be restored later with an option or policy. Fixes: #24576 Issue: #18405
| * | CMake 3.26.0-rc5v3.26.0-rc5Brad King2023-03-011-1/+1
| | |
* | | Merge topic 'file-install-macos'Brad King2023-03-081-0/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 963440ec01 Merge branch 'backport-3.26-file-install-macos' 81ac174514 Merge branch 'upstream-KWSys' into file-install-macos a87ea777d4 KWSys 2023-03-08 (a3ff01ab) a6f5bdd650 Merge branch 'backport-3.24-file-install-macos' 35f2b1bf5b file(INSTALL): Fix file ownership regression when running as root on macOS a5d6548587 file(INSTALL): Fix file ownership regression when running as root on macOS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8293
| * | | Merge branch 'upstream-KWSys' into file-install-macosBrad King2023-03-081-0/+6
| | |/ | |/| | | | | | | | | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2023-03-08 (a3ff01ab)
* | | CMake Nightly Date StampKitware Robot2023-03-081-1/+1
|/ /
* | Merge topic 'improve-doc-signatures'Brad King2023-03-071-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 533ebb072b Help: Use signature directive for string command cd33f461a6 Help: Use signature directive for cmake_language command 74e3c1d313 Utilities/Sphinx: Add a directive to document command signatures c09b760484 Utilities/Sphinx: Drop commented-out code from cmake domain impl 6e85ad7f8b Help/dev: Add per-directive sections in CMake Documentation Guide Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8243
| * | Utilities/Sphinx: Add a directive to document command signaturesMatthew Woehlke2023-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | | Add a `signature` directive to offer a CMake version of Sphinx's `function` directive, similar to that found in other domains (py, cpp, etc.). Like others, this takes one or more signatures as arguments and creates dt/dd nodes from the signatures and the directive contents.
* | | Merge topic 'Xcode-frameworks-consumption'Brad King2023-03-071-13/+19
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ce1bdec3a4 Xcode: Fix missing Frameworks search paths Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8288
| * | | Xcode: Fix missing Frameworks search pathsMarc Chevrier2023-03-061-13/+19
| | | | | | | | | | | | | | | | Fixes: #24541
* | | | CMake Nightly Date StampKitware Robot2023-03-071-1/+1
| | | |
* | | | Merge topic 'Apple-text-Stubs-imported-configurations'Brad King2023-03-061-1/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2e24123186 Apple: text-based stubs: manage imported configurations mapping Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8283
| * | | | Apple: text-based stubs: manage imported configurations mappingMarc Chevrier2023-03-051-1/+3
| | | | |
* | | | | CMake Nightly Date StampKitware Robot2023-03-061-1/+1
| |/ / / |/| | |
* | | | CMake Nightly Date StampKitware Robot2023-03-051-1/+1
| | | |
* | | | CMake Nightly Date StampKitware Robot2023-03-041-1/+1
|/ / /
* | | Merge topic 'DxxxxWarnings'Brad King2023-03-031-0/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 442170a5e7 cm_cxx_features: Ignore MSVC command-line warnings (Dxxxx) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8277
| * | | cm_cxx_features: Ignore MSVC command-line warnings (Dxxxx)Roffild2023-03-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The Dxxxx warning range is for command-line warnings [1]. These are incidental and should not affect the result of the feature check. [1] https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/command-line-errors-d8000-through-d9999
* | | | Merge topic 'update-kwsys'Brad King2023-03-031-29/+34
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1caf5cbd6a Merge branch 'upstream-KWSys' into update-kwsys 5433eea1a9 KWSys 2023-03-02 (ea806689) Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8278
| * | | | Merge branch 'upstream-KWSys' into update-kwsysBrad King2023-03-021-29/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By KWSys Upstream * upstream-KWSys: KWSys 2023-03-02 (ea806689)
* | | | | Merge topic 'ninja-multi-output-path-prefix'Brad King2023-03-031-10/+15
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | df38eaab2c Ninja Multi-Config: Write output path prefix Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8280
| * | | | | Ninja Multi-Config: Write output path prefixKyle Edwards2023-03-021-10/+15
| |/ / / / | | | | | | | | | | | | | | | Fixes: #24566
* | | | | CMake Nightly Date StampKitware Robot2023-03-031-1/+1
| | | | |
* | | | | Merge topic 'TargetRunTimeDllDirs'Kyle Edwards2023-03-021-10/+46
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a2c9c4f202 Add test for the new TARGET_RUNTIME_DLL_PATHS genex aa68de0a27 TARGET_RUNTIME_DLLS: minor refactoring of shared-check.cmake 2ce3d62ffb Help: add documentation for the new TARGET_RUNTIME_DLL_DIRS genex c351dcd967 TARGET_RUNTIME_DLL_DIRS: add the new genex to cmGeneratorExpressionNode 064c3244da TARGET_RUNTIME_DLLS: fix test for this genex Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Alex <leha-bot@yandex.ru> Merge-request: !8247
| * | | | TARGET_RUNTIME_DLL_DIRS: add the new genex to cmGeneratorExpressionNodeAlexander Neundorf2023-02-261-10/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds handling for a new genex TARGET_RUNTIME_DLL_DIRS to cmGeneratorExpressionNode. It refactors the code for TARGET_RUNTIME_DLLS a bit, so that both TARGET_RUNTIME_DLL_DIRS and TARGET_RUNTIME_DLLS share the implementation to collect all dlls. The new genex collects the dlls and in a final step puts all the directories into the result variable (and makes sure there are no duplicates).
* | | | | Merge topic 'target_sources-backtrace'Brad King2023-03-021-7/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b909be9e23 target_sources: Fix backtrace on missing source 4a3e79048b Tests: Add RunCMake.target_sources case covering missing source Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !8268
| * | | | | target_sources: Fix backtrace on missing sourceBrad King2023-02-281-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a source file is not found, the error message reports a backtrace. Previously the backtrace pointed at where the target was created. In the case of `target_sources`, the missing source may have been named elsewhere. Fixes: #24538
* | | | | | Merge topic 'clean-AddCacheEntry'Brad King2023-03-021-12/+0
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 87c4eba5cb cmState::AddCacheEntry(): Remove unused overloads Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8269
| * | | | | | cmState::AddCacheEntry(): Remove unused overloadsVitaly Stakhovsky2023-02-281-12/+0
| |/ / / / /
* | | | | | Merge topic 'dont_use_bom_with_cuda'Brad King2023-03-024-20/+25
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c5305cf493 Makefile: Don't pass the CUDA compiler response files with UTF8_BOM Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ivan Katalenić <ivankatalenic100@gmail.com> Merge-request: !8267
| * | | | | | Makefile: Don't pass the CUDA compiler response files with UTF8_BOMRobert Maynard2023-02-284-20/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #24544
* | | | | | | Merge topic 'Apple-handle-Text-Stubs'Brad King2023-03-0224-184/+1034
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ede33f30cf Apple: Handle generation and comsuption of text-based stubs (.tbd files) fcbd723a50 Enhance support functions Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !8204
| * | | | | | Apple: Handle generation and comsuption of text-based stubs (.tbd files)Marc Chevrier2023-03-0123-153/+987
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #24123
| * | | | | | Enhance support functionsMarc Chevrier2023-02-288-32/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid duplicate definiitions for IsExecutableWithExports, etc... * Add helper IsApple()
* | | | | | | CMake Nightly Date StampKitware Robot2023-03-021-1/+1
| | | | | | |
* | | | | | | Merge topic 'check-curses-min-cmake'Brad King2023-03-011-4/+1
|\ \ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d70582eed8 ccmake: Update minimum required version of CMake for curses check Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8272
| * | | | | | ccmake: Update minimum required version of CMake for curses checkBrad King2023-03-011-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should have been part of commit d6b811fb82 (Require CMake 3.13+ to configure CMake itself, 2022-02-22, v3.24.0-rc1~605^2~1).
| * | | | | | CMake 3.26.0-rc4v3.26.0-rc4Brad King2023-02-221-1/+1
| | | | | | |
| * | | | | | Merge topic 'xcode-revert-header-map' into release-3.26Brad King2023-02-201-0/+1
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 841272eb35 Xcode: Restore suppression of header maps Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8218