Commit Graph

15559 Commits

Author SHA1 Message Date
Brad King
bf1841534c Merge topic 'cpack-several-checksums'
bc1c295b95 CPack: Add support for multiple checksums per package

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11141
2025-09-08 11:29:34 -04:00
Brad King
daf5cc56a0 Merge topic 'fbuild_clang_cl'
888e9e1081 FASTBuild: fix CMake build with clang-cl

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !11137
2025-09-08 11:25:51 -04:00
Brad King
5e34b752d6 Merge topic 'cmp0178-warning-googletest'
f4059c5923 GoogleTest: Prevent spurious CMP0178 warning for EXTRA_ARGS

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11152
2025-09-08 11:23:58 -04:00
Brad King
e6c24fe936 Merge topic 'cmp0174-warning-fetchcontent'
20c751bdcb FetchContent: Update policy settings to CMake 4.1
60b8114ea9 Help: Stronger wording for prohibited keywords in FetchContent_Declare()

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11151
2025-09-08 11:22:07 -04:00
Brad King
59d08d013b Merge topic 'mold-depfile-support'
3a7eed6a27 mold linker: support discovery of --dependency-file support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11142
2025-09-05 09:14:07 -04:00
Brad King
9af1de9409 Merge topic 'FindPython-ABI-handling'
c504b1c638 FindPython: Ensure correct handling of Python_FIND_ABI variable

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11145
2025-09-05 09:05:00 -04:00
Sergiu Deitsch
bc1c295b95 CPack: Add support for multiple checksums per package
Closes: #27174
2025-09-05 08:42:17 -04:00
Craig Scott
f4059c5923 GoogleTest: Prevent spurious CMP0178 warning for EXTRA_ARGS
Fixes: #27190
2025-09-05 16:54:57 +10:00
Craig Scott
20c751bdcb FetchContent: Update policy settings to CMake 4.1
The warning for policy CMP0174 can be triggered if a project mistakenly
specifies CONFIGURE_COMMAND, BUILD_COMMAND, INSTALL_COMMAND,
or TEST_COMMAND as keywords to FetchContent_Declare() and it passes
an empty string after the keyword. It shouldn't be specifying any of those
keywords, but doing so has always worked because FetchContent_Declare()
explicitly discards them. However, when a project specifies them, they get
used internally in contexts where the policy settings are those of the
FetchContent module itself. Those settings haven't been updated past
CMake 3.29, and CMP0174 came in with CMake 3.31.

Update the policy settings for FetchContent to avoid triggering the CMP0174
warning when a project erroneously specifies the prohibited keywords.

Fixes: #27157
2025-09-05 15:26:05 +10:00
Craig Scott
60b8114ea9 Help: Stronger wording for prohibited keywords in FetchContent_Declare()
Issue: #27157
2025-09-05 15:26:04 +10:00
Eduard Voronkin
888e9e1081 FASTBuild: fix CMake build with clang-cl
Fixes: #27175
2025-09-04 22:12:37 -07:00
Marc Chevrier
c504b1c638 FindPython: Ensure correct handling of Python_FIND_ABI variable
Fixes: #27192
2025-09-04 15:06:57 +02:00
John Drouhard
3a7eed6a27 mold linker: support discovery of --dependency-file support 2025-09-03 17:05:19 -05:00
Brad King
f70a8f890b Merge topic 'aix-clang-compiler-target'
c482a8833a AIX: Fix shared library linking with CMAKE_<LANG>_COMPILER_TARGET

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11113
2025-09-02 10:54:21 -04:00
Brad King
c36c19d711 Merge topic 'patch-CheckIncludeFiles-LANGUAGE'
5000f895fd CheckIncludeFiles: Document version 3.11 for LANGUAGE option

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11123
2025-09-02 09:52:24 -04:00
David Tenty
c482a8833a AIX: Fix shared library linking with CMAKE_<LANG>_COMPILER_TARGET
With Clang, `CMAKE_C_COMPILER_TARGET` adds a `--target=` flag as part of
the `<CMAKE_C_COMPILER>` placeholder, causing the flag to be passed to
our `ExportImportList` script.  Tolerate it.

Fixes: #27167
2025-09-01 14:42:46 -04:00
Brad King
d65cd65df5 Merge topic 'patch-find-modules-versions'
f0b4c19052 FindIcotool: Add Icotool_VERSION
f503c8dad4 FindHSPELL: Add HSPELL_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11098
2025-09-01 14:36:24 -04:00
Brad King
230c5c7d46 Merge topic 'patch-FindOpenCL-version'
870fd818a3 FindOpenCL: Add OpenCL_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11108
2025-09-01 14:31:02 -04:00
Brad King
5cf0f77644 Merge topic 'patch-FindCUDA-CMAKE_CURRENT_LIST_DIR'
bf26270000 FindCUDA: Use CMAKE_CURRENT_LIST_DIR

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11119
2025-09-01 14:28:54 -04:00
Brad King
f1912b72a3 Merge topic 'patch-FindQt4-paths'
8083ce3d8a FindQt4: Use CMAKE_CURRENT_LIST_DIR

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11118
2025-09-01 14:26:31 -04:00
Brad King
1c83bf44c8 Merge topic 'patch-ExternalData-paths'
a10fa40c85 ExternalData: Use CMAKE_CURRENT_FUNCTION_LIST_{DIR,FILE}

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11117
2025-09-01 14:24:25 -04:00
Brad King
0e99a701d5 Merge topic 'patch-CheckPrototypeDefinition-CMAKE_CURRENT_FUNCTION_LIST_DIR'
6cf9ed5f94 CheckPrototypeDefinition: Use CMAKE_CURRENT_FUNCTION_LIST_DIR

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11116
2025-09-01 14:21:20 -04:00
Brad King
2887d438de Merge topic 'patch-CheckTypeSize-CMAKE_CURRENT_FUNCTION_LIST_DIR'
d59be2406e CheckTypeSize: Use CMAKE_CURRENT_FUNCTION_LIST_DIR

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11115
2025-09-01 14:18:11 -04:00
Peter Kokot
5000f895fd CheckIncludeFiles: Document version 3.11 for LANGUAGE option
- The check_include_files(LANGUAGE) option was added in CMake 3.11.
- Additionally, this syncs the documentation style for the other modules
  that check headers as they are commonly browsed together.
- Fixed typo in CheckIncludeFile module example.
2025-08-31 16:02:28 +02:00
Brad King
985bbf724a Merge topic 'fbuild'
94113ac687 ci: Add jobs for FASTBuild generator on Linux, macOS, and Windows
01147454e7 FASTBuild: Add generator

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Osyotr <zhenchik35026@gmail.com>
Acked-by: Peter Kokot <peterkokot@gmail.com>
Merge-request: !10941
2025-08-27 11:43:37 -04:00
Brad King
1637764cb7 Merge topic 'FindOpenMP-LLVMFlang'
d47ea5684a FindOpenMP: Add support for LLVMFlang on non-Windows too

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11069
2025-08-27 11:38:25 -04:00
Brad King
2981a064f4 Merge topic 'patch-FindwxWidgets-wxWidgets_USE_FILE'
4f9a8c8aa1 FindwxWidgets: Deprecate wxWidgets_USE_FILE

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11110
2025-08-27 11:36:21 -04:00
Brad King
4af2db6ad9 Merge topic 'patch-FindQt3-version'
34a4b39cf3 FindQt3: Add Qt3_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11107
2025-08-27 11:35:02 -04:00
Brad King
2b12c3563e Merge topic 'patch-CPackIFWConfigureFile-min-version'
7db6ff4863 CMake: Include CPackIFWConfigureFile normally

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11104
2025-08-27 11:33:12 -04:00
Brad King
7f431ff6b4 Merge topic 'patch-FindTclsh-version'
f9fec08e69 FindTclsh: Add Tclsh_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11103
2025-08-27 11:29:31 -04:00
Brad King
08b46315ea Merge topic 'patch-FindDCMTK'
7578837ce7 FindDCMTK: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11102
2025-08-27 11:27:28 -04:00
Brad King
7212282f02 Merge topic 'patch-FindPkgConfig-found-var'
9e3d2cd94f FindPkgConfig: Deprecate PKG_CONFIG_FOUND

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11099
2025-08-27 11:16:46 -04:00
Eduard Voronkin
01147454e7 FASTBuild: Add generator
Fixes: #15294
2025-08-26 14:29:01 -07:00
Peter Kokot
bf26270000 FindCUDA: Use CMAKE_CURRENT_LIST_DIR 2025-08-26 15:20:08 +02:00
Peter Kokot
8083ce3d8a FindQt4: Use CMAKE_CURRENT_LIST_DIR
When this was implemented, CMAKE_CURRENT_LIST_DIR variable
wasn't yet available until CMake 2.8.3.
2025-08-26 15:15:00 +02:00
Peter Kokot
6cf9ed5f94 CheckPrototypeDefinition: Use CMAKE_CURRENT_FUNCTION_LIST_DIR
When this was implemented, CMAKE_CURRENT_FUNCTION_LIST_DIR variable
wasn't yet available until CMake 3.17.
2025-08-26 13:07:11 +02:00
Peter Kokot
a10fa40c85 ExternalData: Use CMAKE_CURRENT_FUNCTION_LIST_{DIR,FILE}
When this was implemented, CMAKE_CURRENT_FUNCTION_LIST_DIR and
CMAKE_CURRENT_FUNCTION_LIST_FILE variables weren't yet available until
CMake 3.17.
2025-08-26 13:06:06 +02:00
Peter Kokot
d59be2406e CheckTypeSize: Use CMAKE_CURRENT_FUNCTION_LIST_DIR
When this was implemented, CMAKE_CURRENT_FUNCTION_LIST_DIR variable
wasn't yet available until CMake 3.17.
2025-08-26 13:04:21 +02:00
Peter Kokot
870fd818a3 FindOpenCL: Add OpenCL_VERSION
- This deprecates the OPENCL_VERSION_STRING result variable.
- Documentation adjusted.
- Support for OpenCL 3.0 was added in CMake 3.24.
- Added CL_TARGET_OPENCL_VERSION compile definition to test so that
  program compiles without warnings.
- Additionally, on Apple systems compiler can't find <Headers/cl.h>
  unless direct path would be passed as a header. Instead, <OpenCL/cl.h>
  is used for version check conditionally.

Issue: #27088
2025-08-25 22:16:51 +02:00
scivision
d47ea5684a FindOpenMP: Add support for LLVMFlang on non-Windows too
LLVMFlang requires explicit linking to `libomp` on all platforms.
2025-08-25 11:17:41 -04:00
Marc Chevrier
0a4a4d2053 FindPython: NumPy target does not depend on Development.Module
Fixes: #27123
2025-08-25 15:28:41 +02:00
Peter Kokot
4f9a8c8aa1 FindwxWidgets: Deprecate wxWidgets_USE_FILE
This variable in current CMake versions doesn't seem to be needed in any
case. Either if the UsewxWidgets is created in the project's own
CMAKE_MODULE_PATH location, or if FindwxWidgets is "forked" into project
own modules, include(UsewxWidgets) always includes the wanted file.
2025-08-25 01:52:40 +02:00
Peter Kokot
34a4b39cf3 FindQt3: Add Qt3_VERSION
This deprecates the QT_VERSION_STRING result variable.

The QT_VERSION_STRING was probably meant to be set also by FindQt4
module (for the deprecated FindQt) but at the time of writing isn't
implemented therefore replaced in the test.

Issue: #27088
2025-08-24 10:59:32 +02:00
Peter Kokot
7db6ff4863 CMake: Include CPackIFWConfigureFile normally
As minimum CMake version required to build CMake itself is set to 3.13,
including this module from the source directory isn't needed anymore,
as it was added in CMake 3.8. This also enables changing module code
as done in other modules - not dependent on CMake build system itself.
2025-08-23 11:48:36 +02:00
Peter Kokot
f9fec08e69 FindTclsh: Add Tclsh_VERSION
This deprecates the TCLSH_VERSION_STRING result variable.

Issue: #27088
2025-08-22 23:10:09 +02:00
Peter Kokot
7578837ce7 FindDCMTK: Update documentation
- Synced module documentation with other similar find modules.
- Moved "compatibility" section into a refactored note at the top, when
  the config mode was implemented in this module.
- Added examples section.
2025-08-22 18:59:16 +02:00
Peter Kokot
9e3d2cd94f FindPkgConfig: Deprecate PKG_CONFIG_FOUND
Since most of the find modules use the `<PackageName>_FOUND` result
variables, this now also syncs it for the FindPkgConfig module. The
`PkgConfig_FOUND` result variable is available since CMake 3.3 and
contains the same value. There is also `PKGCONFIG_FOUND` result variable
automatically set with the same value but for simplicity isn't
documented. The uppercased `<PACKAGENAME>_FOUND` result variables set by
find modules are also considered legacy variables.
2025-08-21 01:01:33 +02:00
Peter Kokot
f0b4c19052 FindIcotool: Add Icotool_VERSION
This deprecates the ICOTOOL_VERSION_STRING result variable.

Issue: #27088
2025-08-20 23:32:53 +02:00
Peter Kokot
f503c8dad4 FindHSPELL: Add HSPELL_VERSION
This deprecates the HSPELL_VERSION_STRING result variable.

Additionally, fixed typos:
* HSPELL_VERSION_MAJOR
* HSPELL_VERSION_MINOR

Issue: #27088
2025-08-20 23:31:41 +02:00
Brad King
36673385bb CUDA: Improve error message when CMAKE_CUDA_ARCHITECTURES contains quotes
Closes: #27150
2025-08-20 10:47:02 -04:00