Commit Graph

15387 Commits

Author SHA1 Message Date
Brad King d219994cf0 Merge topic 'patch-FindSDL-version'
faca50bd3f FindSDL*: Add <PackageName>_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11004
2025-08-04 10:27:44 -04:00
Brad King 3bed1629cf Merge topic 'patch-FindJPEG-docs'
2d59d24075 FindJPEG: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11006
2025-08-04 10:25:20 -04:00
Brad King 481d4775bd Merge topic 'patch-FindSQLite3'
d55fffca3e FindSQLite3: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11005
2025-08-04 10:22:52 -04:00
Brad King ba9efd5868 Merge topic 'patch-FindGIF'
df606cbf2d FindGIF: Sync documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11003
2025-08-04 10:20:34 -04:00
Brad King 5807ed7359 Merge topic 'patch-FindZLIB-docs'
d52817f2fd FindZLIB: Sync docs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11002
2025-08-04 10:17:56 -04:00
Brad King 91b94a392b Merge topic 'link-flags'
e349b471d8 MSVC: Fix regression that links shared libraries with bogus -shared flag

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Michael Grossfeld <michael.grossfeld@amd.com>
Merge-request: !10998
2025-08-02 06:26:20 -04:00
Peter Kokot 2d59d24075 FindJPEG: Sync documentation
- Added intro code block showing how to use this module.
- Resorted result variables.
- Renamed "Obsolete Variables" to "Deprecated Variables" to make it more
  clear, what to use.
2025-08-02 04:31:59 +02:00
Peter Kokot d55fffca3e FindSQLite3: Sync documentation
- Added intro code block showing how to use this module.
- Resorted variables and synced their descriptions with other similar
  find modules.
2025-08-02 04:19:03 +02:00
Peter Kokot faca50bd3f FindSDL*: Add <PackageName>_VERSION
This adds the `<PackageName>_VERSION` result variables and deprecates
the `<PackageName>_VERSION_STRING` result variables for the following
modules:

* FindSDL_gfx
* FindSDL_image
* FindSDL_mixer
* FindSDL_net
* FindSDL_sound
* FindSDL_ttf

Issue: #27088
2025-08-02 03:54:18 +02:00
Peter Kokot df606cbf2d FindGIF: Sync documentation
- Added intro code block showing how to use this module.
- Resorted variables and synced their descriptions.
2025-08-02 03:23:04 +02:00
Peter Kokot d52817f2fd FindZLIB: Sync docs
This syncs the module documentation with other similar find modules:

- Added intro code block, how to use this module.
- Resorted result variables and their descriptions.
- Renamed section "Legacy Variables" to "Deprecated Variables" to be
  more clear which variables to use, and moved them to the bottom.
2025-08-02 03:02:21 +02:00
Brad King e349b471d8 MSVC: Fix regression that links shared libraries with bogus -shared flag
Clear `CMAKE_SHARED_LIBRARY_CREATE_<LANG>_FLAGS` since no special
link flags are needed to create a DLL with MSVC toolchains.
Our shared library creation rules never referenced that placeholder,
so this variable was never used until commit 951e4d3f62 (Ninja,Makefile:
Move builtin linker flags to <LINK_FLAGS> placeholder, 2025-06-09,
v4.1.0-rc1~37^2~2) taught the generators to look it up directly.

This was not previously noticed because the `-shared` flag
is ignored unless the `-WX` flag enables an error on it.

Fixes: #27106
2025-08-01 12:37:55 -04:00
Peter Kokot 7e6634ef67 FindLTTngUST: Add LTTngUST_VERSION
This deprecates the LTTNGUST_VERSION_STRING result variable.

Issue: #27088
2025-07-31 21:02:26 +02:00
Peter Kokot 5f2fdb7cbf FindPNG: Add PNG_VERSION
This deprecates the PNG_VERSION_STRING result variable.

Additionally, the documentation has been adjusted and synced with other
similar find modules:
- Added "Deprecated Variables" section and deprecated versions.
- Added intro code block how to use this module.

Issue: #27088
2025-07-31 21:02:05 +02:00
Peter Kokot dd714b4b99 FindLibXslt: Add LibXslt_VERSION
This deprecates the LIBXSLT_VERSION_STRING result variable.

Issue: #27088
2025-07-31 20:59:21 +02:00
Peter Kokot 1b956832d8 FindLibXml2: Add LibXml2_VERSION
This deprecates the LIBXML2_VERSION_STRING result variable.

Issue: #27088
2025-07-31 20:57:44 +02:00
Peter Kokot 2ce689eae2 FindJasper: Add Jasper_VERSION
This deprecates the JASPER_VERSION_STRING result variable.

Issue: #27088
2025-07-31 20:56:41 +02:00
Peter Kokot 58d61f6846 FindFreetype: Add Freetype_VERSION
This deprecates the FREETYPE_VERSION_STRING result variable.

Issue: #27088
2025-07-31 20:55:15 +02:00
Peter Kokot 1e61580bd3 FindEXPAT: Add EXPAT_VERSION
This deprecates the EXPAT_VERSION_STRING result variable, which was
previously not documented.

Issue: #27088
2025-07-31 20:48:54 +02:00
Brad King 43a86ba605 Merge topic 'patch-FindPostgreSQL-version'
4d4d10e95d FindPostgreSQL: Add PostgreSQL_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Vito Gamberini <vito.gamberini@kitware.com>
Merge-request: !10987
2025-07-31 11:02:49 -04:00
Brad King 6d265917af Merge topic 'patch-FindALSA-version'
5df1d3f036 FindALSA: Add ALSA_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Vito Gamberini <vito.gamberini@kitware.com>
Merge-request: !10986
2025-07-31 10:57:05 -04:00
Brad King 1c3300998f Merge topic 'short-object-names'
8180ecad9b autogen: support the `SHORT` intermediate dir strategy
f97d1bf7d8 Visual Studio: support shortened object filenames
a3a190c006 cmcmd: also forward rsp files in `.o` directories
3f33a5387a Makefiles: support shortened object filenames
b121adaa04 Makefiles: pass the target name to `cmake -E cmake_depends`
851e07fda3 Ninja: support short object directories
050f891d81 Tests: choose an explicit FULL strategy in tests expecting it
cce31527f8 Tests/ObjectLibrary: add shortened path tests
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10833
2025-07-30 11:36:21 -04:00
Brad King 188c2d2476 Merge topic 'export-dependencies-unwind'
92b403fc62 install(EXPORT): Use UNWIND_INCLUDE in exported find_dependency()
bba78d656e FindDependency: Split up macro to allow for no_return variant

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10968
2025-07-30 10:14:47 -04:00
Peter Kokot 4d4d10e95d FindPostgreSQL: Add PostgreSQL_VERSION
This deprecates the PostgreSQL_VERSION_STRING result variable.

Issue: #27088
2025-07-30 03:02:52 +02:00
Peter Kokot 5df1d3f036 FindALSA: Add ALSA_VERSION
This deprecates the ALSA_VERSION_STRING result variable, which was
previously documented up to CMake 3.11 and then removed from the docs
due to refactorings.

Issue: #27088
2025-07-30 01:10:08 +02:00
Brad King 2ea26aff0c Merge topic 'patch-FindBZip2-version'
50f41bdf59 FindBZip2: Add BZip2_VERSION

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10975
2025-07-29 09:43:20 -04:00
John Parent c6763bb021 ctest: support a new --objects-dir argument
When shorter object directories are used, CTest needs to know where to
look for artifacts.
2025-07-28 12:01:28 -04:00
Brad King 795e3f1ecc Merge topic 'lfortran-module-mangling'
7591439bb8 FortranCInterface: Add support for LFortran module mangling

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10969
2025-07-28 09:30:48 -04:00
Peter Kokot 50f41bdf59 FindBZip2: Add BZip2_VERSION
This deprecates the BZIP2_VERSION result variable.

Issue: #27088
2025-07-27 04:54:27 +02:00
Vito Gamberini bba78d656e FindDependency: Split up macro to allow for no_return variant
Automatic dependency export requires a version of find_dependency that
does not automatically return on a failure to discover a dependency.
This allows the caller to perform clean-up prior to unwinding the
include stack.

Additionally, by making the dependency hash itself a macro "variable",
the hash stack mechanism is no longer necessary.
2025-07-25 21:30:21 -04:00
Brad King 7591439bb8 FortranCInterface: Add support for LFortran module mangling 2025-07-24 09:56:21 -04:00
Brad King 558b3922c3 Merge topic 'ExternalProject-env-vars'
e301cbffcc ExternalProject: Set environment variables
ff21c3f78a Help: ENVIRONMENT_MODIFICATION: split modification ops

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !10842
2025-07-23 12:08:36 -04:00
Brad King 7f168d5bb1 Merge topic 'msvc-std-clatest'
0d758be222 MSVC: Enable C23 language support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10949
2025-07-23 11:59:21 -04:00
Brad King 13c3cf1b9c Merge topic 'llvm-install-name-tool'
9913d3ca1b BinUtils: Search for LLVM alternative to Apple's install_name_tool

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10955
2025-07-23 09:31:21 -04:00
Brad King 7c3e0d380f Merge topic 'clang-msvc-sysroot'
e06235e568 Clang: Implement CMAKE_SYSROOT for GNU-like front-end targeting MSVC ABI

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10962
2025-07-23 09:27:43 -04:00
mccakit 9913d3ca1b BinUtils: Search for LLVM alternative to Apple's install_name_tool
It is called `llvm-install-name-tool`.

Fixes: #27069
2025-07-22 13:59:09 -04:00
Michael Hirsch 0d758be222 MSVC: Enable C23 language support
Introduced support via `-std:clatest` in cl 19.39.
2025-07-22 13:50:44 -04:00
Evan Wilde e301cbffcc ExternalProject: Set environment variables
Add the ability to modify the environment of the various steps running
as part of an external project build. This specifically adds the ability
to set them on the configure , build , install, and test steps, as well
as exposing the `ENVIRONMENT_MODIFICATION` keyword arguments to
`ExternalProject_Add_Step`, allowing customization of the environment of
custom steps.

The values of the environment variable respect the `LIST_SEPARATOR`.

Fixes: #26963
2025-07-22 13:13:23 -04:00
Brad King e06235e568 Clang: Implement CMAKE_SYSROOT for GNU-like front-end targeting MSVC ABI
Fixes: #26084
2025-07-21 15:21:35 -04:00
Peter Kokot 0622cb343e AIX: Drop unnecessary -l from CMAKE_DL_LIBS
The `-lld` linker flag was added from the previous command-line script
that have all values in `CMAKE_DL_LIBS` prepended with `-l`.

On AIX, the `dlopen()` is otherwise in C library (default). But it seems
that also `libld` library was once needed on some versions to have
dynamic loading working.

Sync `CMAKE_DL_LIBS` value style with all other current usages.
2025-07-21 11:34:03 -04:00
Brad King 8eeeeb7efe Merge topic 'doc-FindDoxygen-TypoFix'
8695591d50 FindDoxygen: Fix typo in docs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10956
2025-07-21 10:29:10 -04:00
Austin Schuberth 8695591d50 FindDoxygen: Fix typo in docs
The example for using custom configuration file used
`doxygen_add_doxs()` instead of `doxygen_add_docs()`.
2025-07-21 10:21:07 -04:00
Peter Kokot 59da6d9e5c TestBigEndian, CMAKE_<LANG>_BYTE_ORDER: Update documentation
- Fixed typo in the module description.
- Added examples section highlighting the code migration towards the
  `CMAKE_<LANG>_BYTE_ORDER` variable.
- Documented command similar to other modules.
- Added examples for the `CMAKE_<LANG>_BYTE_ORDER` variable and
  explained when endianness for different languages can be used.
2025-07-16 14:55:48 +02:00
Brad King d4306378b9 Merge topic 'freebsd_linker_variables'
7ae11ea4e7 Platform: Add compiler platform modules for BSDs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10919
2025-07-15 10:54:13 -04:00
Undefine 7ae11ea4e7 Platform: Add compiler platform modules for BSDs
These set variables required for CMAKE_LINKER_TYPE to work

Fixes: #27037
2025-07-12 21:36:42 +02:00
Brad King 5cb9891d64 Merge topic 'windows-kernel-mode-driver'
2f5dce1b40 cmExperimental: remove the flag for Windows Kernel Mode Driver support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10937
2025-07-10 10:30:26 -04:00
Brad King 2f5dce1b40 cmExperimental: remove the flag for Windows Kernel Mode Driver support
Enable setting `CMAKE_SYSTEM_NAME` to `WindowsKernelModeDriver` without
an experimental gate.
2025-07-09 09:54:45 -04:00
Brad King e5dc5dfe10 Merge topic 'cuda-nonexistent-compiler-path'
bf442068bb CUDA: Improve error message for nonexistent compiler paths

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10933
2025-07-09 09:43:29 -04:00
Robert Maynard bf442068bb CUDA: Improve error message for nonexistent compiler paths
Fixes: #25709
2025-07-08 09:58:37 -04:00
Brad King 64b35e8fcb Merge topic 'gtest-use-json-output-for-discovery'
088b0af2f9 GoogleTest: Fix naming of tests with named parameters
3f780c3fde GoogleTest: Set DEF_SOURCE_LINE on tests if file and line are known
1cdceae8e3 GoogleTest: Parse discovered test list from JSON output if supported
07d14c21a9 GoogleTest: Add tests for NO_PRETTY_VALUES and NO_PRETTY_TYPES
54bb974b27 GoogleTest: Add tests for named parameters

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Dennis Lambe <malsyned_kitware@malsyned.net>
Merge-request: !10739
2025-07-08 09:40:03 -04:00