Brad King
563e11b6fd
Merge topic 'cmake#27203/add-NDEBUG-GHS'
...
7493bc6d4a GHS C/CXX compiler: add NDEBUG compile define for non-debug aka release builds
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11158
2025-09-09 09:53:10 -04:00
Brad King
c81e96d80c
Merge topic 'CheckCompilerFlag-no-newlines'
...
993794f5f6 CheckCompilerFlag: Avoid matching parts of multiple messages
c196e024bd CheckCompilerFlag: Improve layout of message regex tables
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11161
2025-09-09 09:48:37 -04:00
Brad King
f32b6ae8f2
Merge topic 'iar-asm'
...
87d95b2222 ASM: Restore CMAKE_ASM_COMPILER_ARCHITECTURE_ID persistence
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11160
2025-09-09 09:45:34 -04:00
Andreas Graf
7493bc6d4a
GHS C/CXX compiler: add NDEBUG compile define for non-debug aka release builds
...
Fixes : #27203
2025-09-08 18:19:03 +02:00
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
993794f5f6
CheckCompilerFlag: Avoid matching parts of multiple messages
...
Diagnostic messages for unsupported flags appear on a single line.
Do not accidentally match unrelated messages across multiple lines.
Fixes : #27156
2025-09-08 11:16:09 -04:00
Brad King
c196e024bd
CheckCompilerFlag: Improve layout of message regex tables
2025-09-08 11:14:41 -04:00
Brad King
87d95b2222
ASM: Restore CMAKE_ASM_COMPILER_ARCHITECTURE_ID persistence
...
Refactoring in commit 019f0f8b32 (ARCHITECTURE_ID: Save persistently
even if empty, 2025-03-13, v4.1.0-rc1~499^2~1) accidentally dropped
part of the variable name in `CMakeASMCompiler.cmake`.
Reported-by: Felipe Torrezan <felipe.torrezan@iar.com >
2025-09-08 10:38:30 -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