Commit Graph
15550 Commits
Author SHA1 Message Date
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
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
Brad King 9e89400d13 Merge topic 'patch-26555-modules-intro-code-blocks'
1d0b46111e Help: Add remaining intro code blocks to modules

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11091
2025-08-20 10:14:39 -04:00
Brad King 7d7b91717c Merge topic 'patch-FindPkgConfig-version'
13366e3045 FindPkgConfig: Add PkgConfig_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11089
2025-08-20 10:10:34 -04:00
Brad King 4dfc6d200b Merge topic 'patch-FindwxWidgets-version'
559500bede FindwxWidgets: Add wxWidgets_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11088
2025-08-20 10:06:12 -04:00
Brad King 2ec20fc2f8 Merge topic 'patch-FindHg-version'
e463cf3283 FindHg: Add Hg_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11083
2025-08-18 10:20:21 -04:00
Brad King 53d765cd5c Merge topic 'patch-FindMPI'
66be29e3e0 FindMPI: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11084
2025-08-18 10:15:54 -04:00
Peter Kokot 1d0b46111e Help: Add remaining intro code blocks to modules
This is a follow-up to add intro code blocks to all remaining utility
and find modules.

Fixes: #26555
2025-08-18 11:52:56 +02:00
Peter Kokot 13366e3045 FindPkgConfig: Add PkgConfig_VERSION
This deprecates the PKG_CONFIG_VERSION_STRING result variable.

Issue: #27088
2025-08-17 07:31:44 +02:00
Peter Kokot 559500bede FindwxWidgets: Add wxWidgets_VERSION
This deprecates the wxWidgets_VERSION_STRING result variable.

Issue: #27088
2025-08-17 07:17:12 +02:00
Toby Isaac a1fa0a3f23 FindBLAS: Fix search for ACML when not in fallback paths
Avoid indexing an empty list.

Fixes: #27141
2025-08-15 14:00:20 -04:00