Commit Graph

70454 Commits

Author SHA1 Message Date
Brad King
ee24bb6a6f Merge topic 'cmake-parent-list-file'
a9ea55f0d7 Fix CMAKE_PARENT_LIST_FILE after return from include() or find_package()
41708398eb cmMakefile: Factor out base class for list file scope RAII
ce8be3da80 cmMakefile: De-duplicate CMAKE_CURRENT_LIST_FILE variable names
0b85f8f137 Tests: Add cases for CMAKE_PARENT_LIST_FILE with include() and find_package()
002979e145 Tests/RunCMake/include: Match incidental line numbers more robustly

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10505
2025-04-14 08:29:52 -04:00
Brad King
bc1c3e94e0 Merge topic 'cps-link-only'
ebe487ea81 export: Allow export with LINK_ONLY library dependencies
13c7bb5b0c cmGeneratorExpression: Update strip function to collect parsed expressions

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10522
2025-04-14 08:25:55 -04:00
Peter Kokot
6dff939916 FindGnuTLS: Update documentation
- Added examples section.
- Synced module documentation with other similar find modules.
- Documented some missing variables to make the result variables and
  cache variables sections consistent. The imported target is
  highlighted in the example.
- Added deprecated variables section.
- GnuTLS_FOUND variable used. GNUTLS_FOUND is also set to the same value
  as of CMake 3.3.
2025-04-14 12:47:03 +02:00
Kitware Robot
3efd0e489a CMake Nightly Date Stamp 2025-04-14 00:07:52 -04:00
Peter Kokot
d7a4750c78 FindKDE3: Update documentation
- This syncs the module documentation with other similar find modules.
- Added note about KDE version 3 being obsolete and newer KDE version
  should be used. A link to upstream docs is added.
- Fixed typo "SKIP_AUTOMAKE" to "SKIP_AUTOMOC".
- Documented commands. Instead of mentioning "macros", this now uses the
  more general wording "commands" and lists them similar to other
  documentation pages.
- Lowercase style used for commands.
- Reworded descriptions to match the implementations a bit.
2025-04-14 01:25:28 +02:00
Alex Turbov
9784834b4c Help: Use *.rst extension for included files
So, editor(s) can correctly highlight the RST syntax in the included files.
2025-04-14 03:07:46 +04:00
Peter Kokot
2ab964c040 FindCURL: Update documentation
- Module documentation synced with other similar find modules.
- Added examples section.
- Joined all hints variables in a single section.
- Added deprecated variables section.
- Described the "module mode" and "config mode" when searching for CURL
  separately in the module introduction, and added notes to some result
  variables.

Fixes #24580
2025-04-13 17:49:22 +02:00
Kitware Robot
66a33b6663 CMake Nightly Date Stamp 2025-04-13 00:04:37 -04:00
Peter Kokot
8481204a0c FindOpenSSL: Fix version range documentation note
Handling version ranges in FindOpenSSL was added in CMake 3.20.
2025-04-13 04:26:36 +02:00
Peter Kokot
7ac1345f7f FindwxWindows: Update documentation
- Module documentation updated and synced with other similar find
  modules.
- Added examples section highlighting the usage of the FindwxWidgets
  module instead.
2025-04-13 02:52:57 +02:00
Marc Chevrier
2e9648e0de Ninja generator: restore correct encoding for policy CMP0181=OLD
Fixes: #26857
2025-04-12 16:37:57 +02:00
Brad King
d26efc3600 ASM: Restore CMAKE_{C,CXX}_COMPILER as ASM-first candidates
Prior to commit abfe98ce6c (ASM: Consider C/CXX compilers only if
enabled, 2025-04-08) one could pass `-DCMAKE_C_COMPILER=...` to
configure a project that enables `ASM` before/without `C` or `CXX`.
This was previously allowed accidentally as a side effect of the way we
implemented support for using the selected `C` or `CXX` compiler for
`ASM`.  Restore it for compatibility, but also preserve the effect of
commit 6baf65ec46 (ASM: Do not consider MSVC C/CXX compiler for generic
ASM, 2025-04-08) by excluding `cl`.
2025-04-12 10:05:13 -04:00
Benjamin Buch
a9ea55f0d7 Fix CMAKE_PARENT_LIST_FILE after return from include() or find_package()
Fix the implementation, clarify the documentation, and add tests.

Fixes: #25026
Co-authored-by: Brad King <brad.king@kitware.com>
2025-04-12 09:40:37 -04:00
Brad King
41708398eb cmMakefile: Factor out base class for list file scope RAII 2025-04-12 09:39:17 -04:00
Brad King
ce8be3da80 cmMakefile: De-duplicate CMAKE_CURRENT_LIST_FILE variable names 2025-04-12 09:39:17 -04:00
Benjamin Buch
0b85f8f137 Tests: Add cases for CMAKE_PARENT_LIST_FILE with include() and find_package()
Issue: #25026
Co-authored-by: Brad King <brad.king@kitware.com>
2025-04-12 09:38:12 -04:00
Brad King
002979e145 Tests/RunCMake/include: Match incidental line numbers more robustly 2025-04-12 09:20:00 -04:00
Brad King
2cdf95ff86 Merge topic 'patch-FindPythonLibs'
008dc3f330 FindPython{Interp,Libs}: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10641
2025-04-12 08:09:42 -04:00
Brad King
c6751f98b5 Merge topic 'ci-hip'
f80de64581 ci: add tags to tie HIP jobs to runners with matching hardware

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10642
2025-04-12 08:07:14 -04:00
Kitware Robot
95437332ec CMake Nightly Date Stamp 2025-04-12 00:07:23 -04:00
Brad King
f80de64581 ci: add tags to tie HIP jobs to runners with matching hardware
This is necessary to add CI runners with newer AMD GPUs over time.
2025-04-11 14:40:31 -04:00
Brad King
e1f41230a1 Merge branch 'release-4.0' 2025-04-11 14:37:21 -04:00
Brad King
dfc4beb09c Merge topic 'doc-path-case-sensitivity'
1fb7067b6e Help: Add 4.0 release note about file path case sensitivity on Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10639
2025-04-11 14:37:21 -04:00
Brad King
3edb0b5dbe Merge topic 'doc-path-case-sensitivity' into release-4.0
1fb7067b6e Help: Add 4.0 release note about file path case sensitivity on Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10639
2025-04-11 14:37:19 -04:00
Martin Duffy
ebe487ea81 export: Allow export with LINK_ONLY library dependencies 2025-04-11 13:20:14 -04:00
Peter Kokot
008dc3f330 FindPython{Interp,Libs}: Update documentation
Even though these modules are removed with a policy, documentation can
still be improved a bit to help when upgrading CMake code.

Changes:
- Synced modules documentation with other similar find modules.
- Added examples section to hint how to rewrite code using the
  FindPython module.
- FindPythonLibs:
  - Deprecated variables moved to a separate section.
  - PythonLibs_FOUND variable used. The PYTHONLIBS_FOUND variable is
    also set to the same value since CMake 3.3.
- FindPythonInterp:
  - PythonInterp_FOUND variable used. The PYTHONINTERP_FOUND variable is
    also set to the same value since CMake 3.3.
2025-04-11 19:01:55 +02:00
Martin Duffy
13c7bb5b0c cmGeneratorExpression: Update strip function to collect parsed expressions 2025-04-11 10:54:20 -04:00
Brad King
1fb7067b6e Help: Add 4.0 release note about file path case sensitivity on Windows
Since KWSys commit `4feb470ab` (SystemTools: Remove GetActualCaseForPath
from CollapseFullPath, 2024-10-23), imported by commit ede7f2afa6 (KWSys
2024-10-24 (e1acde2e), 2024-10-24, v4.0.0-rc1~589^2~1^2), the KWSys
`CollapseFullPath` function that we use to normalize source file paths
no longer looks up the on-disk case of file paths.  This change was
intentionally made to reduce unnecessary disk accesses.  The change may
affect Windows-only projects that were never built on a case sensitive
filesystem.  Call out the change in the 4.0 release notes.

Issue: #26854
2025-04-11 10:33:09 -04:00
Brad King
562be7f05c Merge topic 'hip-test-archs'
8532e28528 Tests/HIP: Drop unnecessary hard-coded compute architectures

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10637
2025-04-11 10:19:43 -04:00
Brad King
a84177c683 Merge topic 'patch-FindDevIL'
add5ea827c FindDevIL: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10638
2025-04-11 10:19:02 -04:00
Brad King
890ed9495f Merge topic 'patch-FindSquish'
36b8b053d1 FindSquish: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10634
2025-04-11 10:16:03 -04:00
Brad King
f666b0489e Merge topic 'FindLua5x-headers'
14db9f9329 FindLua{50,51}: Fix finding headers in standard distros

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10635
2025-04-11 10:14:43 -04:00
Kitware Robot
3ecefb7154 CMake Nightly Date Stamp 2025-04-11 00:04:21 -04:00
Peter Kokot
add5ea827c FindDevIL: Update documentation
- Added examples section.
- Explained the DevIL package libraries and imported targets in more
  details.
- Separated the result variables and cache variables.
- Module documentation synced as much as possible for the time being
  with other similar find modules.
2025-04-10 22:54:08 +02:00
Peter Kokot
36b8b053d1 FindSquish: Update documentation
- Updated and synced module documentation according to other similar
  find modules.
- Added a separate examples section.
- Commands are listed using the `command` directives.
- Updated documentation for the `SquishTestScript.cmake` file. This is
  not actually a module but a test script that `FindSquish` uses and
  also isn't technically deprecated as it is still used. Documentation
  changed a bit to explain it is an internal script that shouldn't be
  used in the project directly.
2025-04-10 21:20:09 +02:00
Brad King
8532e28528 Tests/HIP: Drop unnecessary hard-coded compute architectures
In commit 8514ee9b31 (HIP: analyze output of `hipcc` to determine
default GPU architecture, 2021-05-27, v3.21.0-rc1~66^2) we dropped these
from most tests, but missed `HIP.TryCompile`.  Since commit 735f41fc2d
(HIP: Use 'rocm_agent_enumerator' to determine CMAKE_HIP_ARCHITECTURES,
2021-09-15, v3.21.3~1^2~3) we automatically select architectures anyway.
2025-04-10 14:43:22 -04:00
alyokhin
14db9f9329 FindLua{50,51}: Fix finding headers in standard distros
`find_path` already knows how to search in `<prefix>/include` directories.
We need `PATH_SUFFIXES` only for the `/lua*` subdirectory.

Fixes: #26855
2025-04-10 14:00:37 -04:00
Brad King
028e1027be Merge branch 'release-4.0' 2025-04-10 11:32:29 -04:00
Brad King
ee515b2aa8 CMake 4.0.1 v4.0.1 2025-04-10 10:58:22 -04:00
Brad King
0007abc756 Merge branch 'release-4.0' 2025-04-10 10:54:13 -04:00
Brad King
03ceeac1bd Merge topic 'doc-macos-usr-local'
c69add958a Help: Add note about /usr/local/include on macOS without CMAKE_OSX_SYSROOT

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10636
2025-04-10 10:54:13 -04:00
Brad King
a6969916ff Merge topic 'doc-macos-usr-local' into release-4.0
c69add958a Help: Add note about /usr/local/include on macOS without CMAKE_OSX_SYSROOT

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10636
2025-04-10 10:54:11 -04:00
Brad King
c69add958a Help: Add note about /usr/local/include on macOS without CMAKE_OSX_SYSROOT
Issue: #19180
2025-04-10 10:16:29 -04:00
Brad King
cb67f4a42b Merge branch 'release-4.0' 2025-04-10 09:52:14 -04:00
Brad King
8e4c49a4da Merge branch 'release-3.31' 2025-04-10 09:51:55 -04:00
Brad King
f098dc700e Merge branch 'release-3.31' into release-4.0 2025-04-10 09:51:27 -04:00
Brad King
7b16db932a CMake 3.31.7 v3.31.7 2025-04-10 09:13:20 -04:00
Brad King
602b3d2b19 Merge topic 'patch-FindJava'
bc3bcff18c FindJava: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10630
2025-04-10 09:10:25 -04:00
Brad King
97970d2f4a Merge topic 'patch-FindCygwin'
f95eb088ad FindCygwin, FindMsys: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10629
2025-04-10 09:09:11 -04:00
Brad King
b4835863b3 Merge topic 'patch-FindFreetype'
0b0d892dea FindFreetype: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10631
2025-04-10 09:07:14 -04:00