summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* cmDyndepCollation: factor out parsing dyndep informationBen Boeckel2022-11-304-96/+116
|
* cmDyndepCollation: factor out writing C++ module info from NinjaBen Boeckel2022-11-304-214/+303
| | | | | | | | | To facilitate other generators being able to build C++20 modules, start pulling out collator logic into a generator-agnostic location. This commit starts by factoring out the information written to the "target depend info" object consumed during the build to handle writing out export and installation scripts expected during those steps.
* Merge topic 'ci-nvhpc'Brad King2022-11-298-4/+71
|\ | | | | | | | | | | | | | | 16a5c36795 gitlab-ci: add nightly job testing NVHPC with Ninja on Linux 9474d02386 Tests: Clarify CudaOnly.SeparateCompilationPTX output Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7946
| * gitlab-ci: add nightly job testing NVHPC with Ninja on LinuxBrad King2022-11-287-0/+66
| |
| * Tests: Clarify CudaOnly.SeparateCompilationPTX outputBrad King2022-11-231-4/+5
| |
* | Merge topic 'clang-tidy-module-string-concatenation-cmstrcat-check'Brad King2022-11-299-0/+405
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 5ad111e595 clang-tidy: disable string concatenation check c6c8616468 clang-tidy module: add tests for string concatenation check e1ec052d53 clang-tidy module: add check for string concatenation Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !7961
| * | clang-tidy: disable string concatenation checkKyle Edwards2022-11-281-0/+1
| | |
| * | clang-tidy module: add tests for string concatenation checkSean Orner2022-11-284-0/+186
| | |
| * | clang-tidy module: add check for string concatenationJoe Blaauboer2022-11-284-0/+218
| | | | | | | | | | | | Co-Authored-by: Kyle Edwards <kyle.edwards@kitware.com>
* | | Merge topic 'cuda_tests_support_linux_no_static_libs'Brad King2022-11-2920-69/+212
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 54d8044084 Tests: Don't presume that Linux CUDA Toolkits provide static libs Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7949
| * | | Tests: Don't presume that Linux CUDA Toolkits provide static libsRobert Maynard2022-11-2320-69/+212
| | | |
* | | | Merge topic 'iar-rsp-on-objects'Brad King2022-11-291-22/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a51e01f2ec IAR: Add response flag for files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7957
| * | | | IAR: Add response flag for filesFelipe Torrezan2022-11-271-22/+16
| | | | |
* | | | | Merge topic 'cxxmodules-refactor-detection-support'Brad King2022-11-298-128/+147
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e37ff5694c cmGeneratorTarget: factor out fileset info and scanning detection 9e61fc3d6d cmGeneratorTarget: factor out dyndep support detection 5e026739e1 cmGlobalGenerator: factor out C++ module support checking Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7951
| * | | | | cmGeneratorTarget: factor out fileset info and scanning detectionBen Boeckel2022-11-234-95/+99
| | | | | |
| * | | | | cmGeneratorTarget: factor out dyndep support detectionBen Boeckel2022-11-234-22/+22
| | | | | |
| * | | | | cmGlobalGenerator: factor out C++ module support checkingBen Boeckel2022-11-234-12/+27
| | |_|_|/ | |/| | | | | | | | | | | | | This will simplify adding support to other generators.
* | | | | Merge branch 'release-3.25'Brad King2022-11-290-0/+0
|\ \ \ \ \
| * \ \ \ \ Merge topic 'source-from-var' into release-3.25Brad King2022-11-292-4/+6
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f6b99c5087 Check*: Restore support for arbitrary result variable names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7960
* | \ \ \ \ \ Merge topic 'source-from-var'Brad King2022-11-292-4/+6
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f6b99c5087 Check*: Restore support for arbitrary result variable names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7960
| * | | | | | Check*: Restore support for arbitrary result variable namesZhong Ruoyu2022-11-282-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit db76876db5 (Modules: Use new SOURCES_FROM_* try_compile (1/2), 2022-09-26, v3.25.0-rc1~74^2~1) and commit 41f7b1169a (Modules: Use new SOURCES_FROM_* try_compile (2/2), 2022-09-26, v3.25.0-rc1~74^2) the switch to `SOURCE_FROM_*` required a stronger precondition (the second argument to check_include_files must not have path components) than before (any variable name could be used). Fix that by transforming the variable name to a C identifier before feeding it to try_compile as a filename. The filename is unspecified by the documentation, and the file itself is only temporary, so that should work fine. I have gone through all the occurrences of `SOURCE_FROM_*`, and identified these two that require changes. The rest should work fine as the filenames do not depend on input variable names. Fixes: #24204
* | | | | | | Merge branch 'release-3.25'Brad King2022-11-290-0/+0
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | |
| * | | | | | Merge topic 'FindRuby-doc-fix' into release-3.25Brad King2022-11-291-3/+0
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0d7f40a5c4 FindRuby: Remove documentation for non-existent Ruby_ROOT_DIR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7954
* | \ \ \ \ \ \ Merge topic 'FindRuby-doc-fix'Brad King2022-11-291-3/+0
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0d7f40a5c4 FindRuby: Remove documentation for non-existent Ruby_ROOT_DIR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7954
| * | | | | | | FindRuby: Remove documentation for non-existent Ruby_ROOT_DIRHannes Braun2022-11-281-3/+0
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Documentation was added by commit 905d5667e8 (FindRuby: Add support for RVM installations, 2020-03-23, v3.18.0-rc1~497^2), but this feature was never implemented. Closes: #21528
* | | | | | | Merge branch 'release-3.25'Brad King2022-11-290-0/+0
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | |
| * | | | | | Merge topic 'android-no-LINUX' into release-3.25Brad King2022-11-291-0/+1
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 19509249a5 Android: Revert setting LINUX variable on Android target systems Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Nevala <robert.nevala@king.com> Acked-by: n00b42 <github.com@mail.msdigital.de> Merge-request: !7963
* | \ \ \ \ \ \ Merge topic 'android-no-LINUX'Brad King2022-11-291-0/+1
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 19509249a5 Android: Revert setting LINUX variable on Android target systems Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Nevala <robert.nevala@king.com> Acked-by: n00b42 <github.com@mail.msdigital.de> Merge-request: !7963
| * | | | | | | Android: Revert setting LINUX variable on Android target systemsBrad King2022-11-281-0/+1
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 62cd3904bf (variable: Set LINUX variable on Linux target systems, 2022-08-10, v3.25.0-rc1~320^2), the `Platform/Android` module inherits the `LINUX` variable setting from `Platform/Linux`. While Android may use a Linux kernel, `CMAKE_SYSTEM_NAME` is not `Linux`, and the platform does not follow conventions of most Linux distributions. Fixes: #24196
* | | | | | | Merge branch 'release-3.25'Brad King2022-11-290-0/+0
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | |
| * | | | | | Merge topic 'msvc-cxx-no-optin-experimental-flag' into release-3.25Brad King2022-11-293-2/+4
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 12e4bc73cb MSVC: don't opt into dyndep support Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7965
* | \ \ \ \ \ \ Merge topic 'msvc-cxx-no-optin-experimental-flag'Brad King2022-11-293-2/+4
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 12e4bc73cb MSVC: don't opt into dyndep support Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7965
| * | | | | | | MSVC: don't opt into dyndep supportBen Boeckel2022-11-283-2/+4
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead, just set the variables for how scanning works since that is part of the compiler mechanisms. Fixes: #24198
* | | | | | | Merge branch 'release-3.25'Brad King2022-11-290-0/+0
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | |
| * | | | | | Merge topic 'revert-find_library-msvc-libfoo.a' into release-3.25Brad King2022-11-292-7/+15
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 955d6245c1 MSVC: Revert "Teach find_library to consider the 'libfoo.a' naming convention" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7962
* | \ \ \ \ \ \ Merge topic 'revert-find_library-msvc-libfoo.a'Brad King2022-11-292-7/+15
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 955d6245c1 MSVC: Revert "Teach find_library to consider the 'libfoo.a' naming convention" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7962
| * | | | | | | MSVC: Revert "Teach find_library to consider the 'libfoo.a' naming convention"Brad King2022-11-282-7/+15
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit be848a71b0 (MSVC: Teach find_library to consider the 'libfoo.a' naming convention, 2022-09-19, v3.25.0-rc1~111^2). When targeting the MSVC ABI, this causes GNU-ABI libraries to be found in cases they were not previously, and broke existing builds. Revert the change pending further discussion on how to handle the motivating use case. Issue: #23975 Fixes: #24168
* | | | | | | Merge branch 'release-3.25'Brad King2022-11-290-0/+0
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | |
| * | | | | | Merge branch 'release-3.24' into release-3.25Brad King2022-11-290-0/+0
| |\ \ \ \ \ \
* | \ \ \ \ \ \ Merge branch 'release-3.24'Brad King2022-11-290-0/+0
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | |
| * | | | | | | Merge branch 'mingw-windres' into release-3.24Brad King2022-11-292-7/+11
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge-request: !7964
* | \ \ \ \ \ \ \ Merge branch 'release-3.25'Brad King2022-11-290-0/+0
|\ \ \ \ \ \ \ \ \ | | |_|/ / / / / / | |/| | | | | | |
| * | | | | | | | Merge topic 'mingw-windres' into release-3.25Brad King2022-11-292-7/+11
| |\ \ \ \ \ \ \ \ | | | |/ / / / / / | | |/| / / / / / | | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | b47092fddb MinGW: Fix regression when windres is not found Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7964
* | | | | | | | Merge topic 'mingw-windres'Brad King2022-11-292-7/+11
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b47092fddb MinGW: Fix regression when windres is not found Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7964
| * | | | | | | MinGW: Fix regression when windres is not foundBrad King2022-11-292-7/+11
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fix in commit e9755bc7c1 (MinGW: Restore using windres when toolchain-prefixed name is not available, 2022-08-15, v3.24.1~4^2) incorrectly listed two entries in `CMAKE_RC_COMPILER_INIT`, which is only meant to have one value. Revise the logic to support multiple platform-specific names for the Windows Resource Compiler while still only using one name as the fallback when it is not found. Fixes: #24190 Issue: #23841
* | | | | | | Merge topic 'doc-add_compile_options-example'Craig Scott2022-11-291-4/+7
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f03a1833e2 Help: Update compiler-specific add_compile_options() example and prose Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7959
| * | | | | | | Help: Update compiler-specific add_compile_options() example and proseMichael Hirsch2022-11-281-4/+7
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid hard-coding a warning-as-error flag now that CMake offers a first class abstraction for that. Also mention some relevant generator expressions which can be used to provide even more specific targeting with language-specific flags. Fixes: #24200
* | | | | | | CMake Nightly Date StampKitware Robot2022-11-291-1/+1
| |_|_|_|_|/ |/| | | | |
* | | | | | Merge topic 'ArgumentFlags-enum-values'Brad King2022-11-287-11/+29
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ab5aeca849 Help: Clarify behavior of BEFORE with target_compile_options() dd3482f675 cmTargetPropCommandBase: Restore ArgumentFlags enum value bool logic Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7956
| * | | | | | Help: Clarify behavior of BEFORE with target_compile_options()Craig Scott2022-11-272-9/+18
| | | | | | |