Commit Graph

70145 Commits

Author SHA1 Message Date
Brad King 908814cda0 Merge topic 'iar-help-compiler-arch-id'
775e532afb IAR: Update documentation for CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10548
2025-03-31 09:45:15 -04:00
Brad King 543ad5d81f Merge topic 'gtest-workdir-with-spaces-tests'
b435d16202 GoogleTest: Add test for spaces in WORKING_DIRECTORY

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10547
2025-03-31 09:17:42 -04:00
Kitware Robot b31843680e CMake Nightly Date Stamp 2025-03-31 00:04:41 -04:00
Peter Kokot 67055f5b3a CMakeDependentOption: Update documentation
This updates the module documentation to be more synced with other
modules. Also, this module on the first glance doesn't do what most
people might think. Because when condition evaluates to false, internal
cache remains with the same value, and a local variable is created with
the value provided in the last argument.

- Command arguments described separately and their placeholders renamed
  to more intuitive names.
- More examples added, starting with a very basic syntax usage to more
  complex ones, each described in more details.
- Each example has include() added to be more clear that this is a
  module command.
2025-03-31 02:42:49 +02:00
Peter Kokot db8064f85e FindJPEG: Update documentation 2025-03-31 02:23:24 +02:00
Peter Kokot 7be6d88f24 FindPhysFS: Update documentation
- Synced the descriptions.
- Added basic example how to find the library.
2025-03-30 20:27:24 +02:00
Peter Kokot c11e37a968 FindSQLite3: Update documentation
- Added usage example to highlight the imported target.
- Reworded and extended descriptions.
2025-03-30 20:05:30 +02:00
Craig Scott 5978c57c20 Merge branch 'release-4.0' 2025-03-30 06:00:08 -04:00
Craig Scott eab202ac9d Merge topic 'doc-4.0-release-cleanup'
5dff5e2f7f Help: Fix typo in 4.0 release notes for CPack archive generator
713968c280 Help: Improve wording of docs related to MSVC runtime checks
316aaa6cdd Help: Fix inaccurate wording for CMAKE_XCODE_SCHEME_... variables

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10545
2025-03-30 06:00:08 -04:00
Craig Scott 468878b546 Merge topic 'doc-4.0-release-cleanup' into release-4.0
5dff5e2f7f Help: Fix typo in 4.0 release notes for CPack archive generator
713968c280 Help: Improve wording of docs related to MSVC runtime checks
316aaa6cdd Help: Fix inaccurate wording for CMAKE_XCODE_SCHEME_... variables

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10545
2025-03-30 06:00:06 -04:00
Craig Scott cf9f4177a2 Merge topic 'doc-cpack-configs'
d289d720cb Help: Use consistent plural form for CPack configurations

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10546
2025-03-30 05:55:58 -04:00
Kitware Robot 550d243b7c CMake Nightly Date Stamp 2025-03-30 00:04:24 -04:00
Peter Kokot d898436cdd FindLibXslt: Update documentation
- Updated and synced descriptions
- Added usage examples
- Described imported targets in more details
2025-03-30 01:52:07 +01:00
Peter Kokot 826a3d8c3f FindXMLRPC: Update documentation
- Added some basic introduction
- Updated a list of XML-RPC library features (also known as modules)
- Updated example and descriptions
2025-03-30 00:30:13 +01:00
Peter Kokot 50e57aa4ca CMAKE_COMPILER_IS_*: Replace with CMAKE_<LANG>_COMPILER_ID
Variables such as CMAKE_COMPILER_IS_GNUCC are documented as
obsolete/deprecated and ideally shouldn't be used in the code anymore
to have clearer compiler identifications.

In the past QCC compiler was identified as GNU and also had this
variable set to 1 (see policy CMP0047).  Same still applies for LCC
compiler (see policy CMP0129).
2025-03-29 20:31:49 +01:00
Peter Kokot 24c01e01e6 FindZLIB: Add example and update docs
- Usage example added to highlight the imported target usage.
- This updates and syncs the module documentation as done in other
  similar find modules.
- The legacy variable ZLIB_VERSION_STRING mentioned only in the legacy
  variables section.
2025-03-29 19:15:48 +01:00
Peter Kokot c584c45f9c FindGit: Update documentation
- Git_FOUND variable synced.
- Added more descriptions and synced with other similar find modules.
- Example extended.
2025-03-29 18:35:00 +01:00
Peter Kokot 22f8ff9f40 FindGIF: Update documentation
- Added example
- Updated descriptions
2025-03-29 14:57:13 +01:00
Peter Kokot d9c92f01db FindPerl: Update documentation
- Added example.
- Docs synced with other similar find modules.
- Perl_FOUND and PERL_FOUND variables are always set as of CMake 3.3 to
  the same value.
2025-03-29 05:48:36 +01:00
Peter Kokot 263a053465 FindPerlLibs: Update documentation 2025-03-29 05:47:52 +01:00
Kitware Robot 7885d5edd9 CMake Nightly Date Stamp 2025-03-29 00:04:23 -04:00
Peter Kokot 7db3f983b3 CMAKE_COMPILER_IS_*: Add RST deprecation directives and update docs
The `CMAKE_COMPILER_IS_*` variables have been documented as deprecated
since CMake 3.24, without emitting warnings.  This commit updates their
documentation to help users safely migrate to `CMAKE_<LANG>_COMPILER_ID`
variables. Also a RST deprecation directive is added to clarify their
status.
2025-03-28 21:14:19 +01:00
Brad King e0b64aad53 Merge topic 'remove-FindCABLE'
2b8b17106c FindCABLE: Add policy to remove this module
3c2ed4bbc6 FindGCCXML: Move documentation to list of deprecated modules

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10540
2025-03-28 09:16:34 -04:00
Brad King 883ba45df8 Merge topic 'patch-CMakeFindPackageMode'
e9b86f5618 CMakeFindPackageMode: Move documentation to --find-package option

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10537
2025-03-28 09:12:32 -04:00
Brad King 6c79abb5f5 Merge topic 'patch-FindOpenCL'
677860c0d4 FindOpenCL: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10535
2025-03-28 09:10:47 -04:00
Brad King 2ee3fc08d8 Merge topic 'patch-FindMotif'
d08ff1356d FindMotif: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10538
2025-03-28 09:07:14 -04:00
Brad King a3c4cc2b1e Merge topic 'patch-FindIcotool'
dd6b3a1d9e FindIcotool: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10536
2025-03-28 09:05:39 -04:00
Felipe Torrezan 775e532afb IAR: Update documentation for CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID 2025-03-28 10:47:37 +01:00
Craig Scott b435d16202 GoogleTest: Add test for spaces in WORKING_DIRECTORY 2025-03-28 18:05:40 +11:00
Craig Scott d289d720cb Help: Use consistent plural form for CPack configurations 2025-03-28 15:46:12 +11:00
Kitware Robot 94a019a82e CMake Nightly Date Stamp 2025-03-28 00:04:37 -04:00
Craig Scott 5dff5e2f7f Help: Fix typo in 4.0 release notes for CPack archive generator 2025-03-28 14:23:47 +11:00
Craig Scott 713968c280 Help: Improve wording of docs related to MSVC runtime checks 2025-03-28 14:23:47 +11:00
Craig Scott 316aaa6cdd Help: Fix inaccurate wording for CMAKE_XCODE_SCHEME_... variables 2025-03-28 14:23:46 +11:00
Peter Kokot dcea9ac688 FindArmadillo: Update documentation
- Synced formatting with other similar find modules
- Added imported target to the example instead of defining compilation
  properties for the entire directory.
- The Armadillo_FOUND variable used - both are always set by
  find_package_handle_standard_args() for BC.
2025-03-28 04:20:28 +01:00
Brad King 01cb522276 Merge branch 'release-4.0' 2025-03-27 11:09:14 -04:00
Brad King f76a123f98 CMake 4.0.0 v4.0.0 2025-03-27 10:29:51 -04:00
Peter Kokot e9b86f5618 CMakeFindPackageMode: Move documentation to --find-package option
- This moves the CMakeFindPackageMode internal module documentation to
  the --find-package option as this module itself cannot be used by the
  project.
- Additionally, some links added.
- The `QUIET` variable renamed in documentation to `SILENT` to be
  effective according to the current code.
2025-03-27 15:29:36 +01:00
Brad King 4f2482700b FindCUDAToolkit: Fix cross-compiling without CMAKE_SYSTEM_PROCESSOR
Previously we relied on the cross-compiling toolchain file to set
`CMAKE_SYSTEM_PROCESSOR` to a value consistent with the CUDA compiler's
target architecture.  When a compiled language is enabled, we now have
its target architecture in `CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID`.
Use that to select the CUDA toolkit's corresponding target directory.

If no language is enabled, or the compiler's target architecture is not
known, fall back to `CMAKE_SYSTEM_PROCESSOR`.  If that is not set, fail
with an explicit error make clear what is wrong.
2025-03-27 10:21:57 -04:00
Brad King 2b8b17106c FindCABLE: Add policy to remove this module
CABLE has not been maintained in a long time.
2025-03-27 09:48:49 -04:00
Brad King 3c2ed4bbc6 FindGCCXML: Move documentation to list of deprecated modules
This was left out of commit 2123244746 (FindGCCXML: Add policy to remove
this module, 2025-02-17).
2025-03-27 09:48:49 -04:00
Brad King f403e570eb Merge topic 'compiler-architecture-id'
7f0f382c55 Provide CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID on more compilers
019f0f8b32 ARCHITECTURE_ID: Save persistently even if empty
8e46672b29 Fortran: Detect pointer size on sparc architectures
eddf66eaef CMakeDetermineASMCompiler: De-duplicate list of compiler info variables
c0224f5aa1 CMakeDetermineCompilerABI: Make ABI info string more robust
67ab580804 Windows/Clang: Fix indentation in platform information module
1c9f8eeb4f Help: Document CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10516
2025-03-27 09:21:48 -04:00
Brad King 54b548df7b Merge topic 'macos-bundle-content-dir'
6b3ec3fefb Ninja/Makefile: Add support for copying directories into Apple bundles

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10508
2025-03-27 09:19:52 -04:00
Brad King ed91e8c360 Merge topic 'file-download-handle-write-error'
9476245dcd file(DOWNLOAD): Handle write errors
1994393f7a cmCurl: Provide CURL_WRITEFUNC_ERROR for curl < 7.87

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10507
2025-03-27 09:17:11 -04:00
Brad King bc88b04944 Merge branch 'release-4.0' 2025-03-27 09:14:16 -04:00
Brad King 0b9b03cda1 Merge branch 'release-3.31' into release-4.0 2025-03-27 09:14:08 -04:00
Brad King a609ef5094 Merge branch 'release-3.31' 2025-03-27 09:13:52 -04:00
Brad King 1030b32931 Merge branch 'release-3.30' 2025-03-27 09:13:46 -04:00
Brad King 36b3f91b59 Merge branch 'release-4.0' 2025-03-27 09:10:32 -04:00
Brad King 48460d22aa Merge topic 'FindCUDAToolkit-cupti'
cbb8f30ee6 CUDAToolkit: Restore ability to find cupti library

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Robert Maynard <robertjmaynard@gmail.com>
Merge-request: !10533
2025-03-27 09:10:32 -04:00