Brad King
812fc9d8fa
Merge topic 'msvc-link-i18n'
...
89899c3ad2 cmcmd: Simplify vs_link_{exe,dll} output encoding logic
c11c86c098 cmcmd: Clarify comment explaining vs_link_{exe,dll} output encoding
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10675
2025-04-18 10:39:38 -04:00
Brad King
03d40705f6
Merge topic 'test-encoding'
...
3f8ad3e894 Tests: Simplify implementation of execute_process encoding test executable
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10676
2025-04-18 10:36:09 -04:00
Brad King
2781e1c58d
Merge topic 'patch-FindCURL-features-protocols-26866'
...
4acfe363a2 FindCURL: Fix hardcoded outdated protocols and features
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10666
2025-04-18 10:34:24 -04:00
Brad King
2cc4c36f9f
Merge topic 'patch-documentation-local-build'
...
4665dba9e4 Help/dev: Add info how to generate documentation locally
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10668
2025-04-18 10:33:12 -04:00
Brad King
0a940684f4
Merge topic 'patch-FindFLTK'
...
0a28689e5b FindFLTK, FindFLTK2: Update documentation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10665
2025-04-18 10:31:52 -04:00
Brad King
75d9fb9b6b
Merge topic 'patch-exec-program'
...
7b79c2b39d exec_program: Add example how to upgrade to execute_process()
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10667
2025-04-18 10:30:50 -04:00
Brad King
522207bf97
Merge topic 'patch-FindImageMagick'
...
419a49c67b FindImageMagick: Update documentation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10670
2025-04-18 10:29:23 -04:00
Kitware Robot
acc98dcd5a
CMake Nightly Date Stamp
2025-04-18 00:04:07 -04:00
Brad King
3f8ad3e894
Tests: Simplify implementation of execute_process encoding test executable
...
Replace use of KWSys ConsoleBuf with direct encoding conversion calls.
2025-04-17 19:53:45 -04:00
Brad King
89899c3ad2
cmcmd: Simplify vs_link_{exe,dll} output encoding logic
...
Revise commit 7e359823c9 (MSVC: Preserve linker output encoding,
2018-08-03, v3.13.0-rc1~223^2) using the approach from commit f7a5f28318
(cmake: Fix '-E cat' command for binary files on Windows, 2020-10-13,
v3.18.5~5^2).
2025-04-17 17:18:39 -04:00
Brad King
c11c86c098
cmcmd: Clarify comment explaining vs_link_{exe,dll} output encoding
...
Revise the comment from commit 7e359823c9 (MSVC: Preserve linker output
encoding, 2018-08-03, v3.13.0-rc1~223^2) to more clearly explain why we
need to write output using a `cmConsoleBuf` without `SetUTF8Pipes`.
2025-04-17 16:23:50 -04:00
Brad King
407363abd0
Merge topic 'argument-parser-trailing-positionals'
...
df870e17f5 cmArgumentParser: Implement trailing positional args
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10655
2025-04-17 10:09:34 -04:00
Brad King
e78cf73b52
Merge topic 'makefile-progress'
...
5781cf406f Makefile: Fix progress with non-excluded targets in excluded dirs
89ab14b05b cmGlobalGenerator: Constify IsExcluded use of cmLocalGenerator
0aabf32590 cmGeneratorExpression: Constify use of cmLocalGenerator
88f54fba43 cmLocalGenerator: Avoid unnecessary const-ness propagation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10658
2025-04-17 10:00:51 -04:00
Brad King
3cc9b88eba
Merge topic 'fileapi-reply-on-failure'
...
0cc962665b fileapi: Generate partial reply when buildsystem generation fails
09aa968ed0 cmFileAPI: Add BuildReplyEntry wrapper around AddReplyIndexObject
5e0a644ee8 Tests/RunCMake/FileAPI: Explicitly specify expected reply index prefix
0a0bd69f4b Help: Polish cmake-file-api(7) manual
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !10652
2025-04-17 09:59:20 -04:00
Peter Kokot
4665dba9e4
Help/dev: Add info how to generate documentation locally
...
This adds a short info to the development documentation how to build it
locally quickly using only Utilities/Sphinx source directory.
2025-04-17 14:09:09 +02:00
Peter Kokot
419a49c67b
FindImageMagick: Update documentation
...
- Synced module documentation with other similar find modules.
- Removed CMake 2.8.8 version info as these are now being cleaned from
the CMake 4 documentation.
- Added some additional versionadded directives for those items that
were added after the CMake 3.0.0 module state.
- Added separate components section.
- Reworded few descriptions.
2025-04-17 13:59:49 +02:00
Kitware Robot
980b79ad1f
CMake Nightly Date Stamp
2025-04-17 00:04:34 -04:00
Peter Kokot
7b79c2b39d
exec_program: Add example how to upgrade to execute_process()
...
This hopefully helps a bit when upgrading CMake code that uses
`exec_program()` command.
Changes:
- Used third-person phrasing for the command description.
- The `exec_program()` command arguments in signature updated a bit.
- Mention of CMakeLists.txt file removed as this command also worked in
CMake scripts and other modes.
- Added examples section.
2025-04-17 01:02:47 +02:00
Peter Kokot
4acfe363a2
FindCURL: Fix hardcoded outdated protocols and features
...
This removes the hardcoded known protocols and features and only checks
whether the specified component(s) by the
`find_package(COMPONENT|OPTIONAL_COMPONENT <components>...)` call are
found and listed by either the pkg-config or the curl-config tool. When
curl is found via its CMake package configuration file, this issue
wasn't relevant.
Additionally, this also removes two internal FindCURL module variables
`CURL_KNOWN_PROTOCOLS` and `CURL_KNOWN_FEATURES`.
Redundant fatal error thrown is also removed as this is handled by the
`find_package_handle_standard_args()`.
Fixes #26866
2025-04-16 23:16:00 +02:00
Peter Kokot
0a28689e5b
FindFLTK, FindFLTK2: Update documentation
...
- Modules documentation updated and syced.
- Added examples section.
- Mentioned FLTK upstream package configuration file that is also taken
into account when calling the find_package(FLTK).
- Briefly mentioned the fltk_wrap_ui() command.
- Added note for FindFLTK2 that it is for the obsolete 2.x branch that
wasn't released and FindFLTK should be used instead.
Issue: #15728
2025-04-16 21:47:03 +02:00
Vito Gamberini
df870e17f5
cmArgumentParser: Implement trailing positional args
2025-04-16 14:15:48 -04:00
Brad King
ca9fa874d8
Merge topic 'nasm-find-compiler'
...
f1b1b84b22 ASM_NASM: Honor ASM_NASM env var over standard NASM installation on Windows
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10662
2025-04-16 09:52:44 -04:00
Brad King
cf77b8e3d1
Merge topic 'install-parallel'
...
20858ddb29 CMake: Enable parallel install for CMake itself
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10661
2025-04-16 09:50:30 -04:00
Brad King
74c62a180d
Merge topic 'empty_elseif_warning'
...
2a8bc1c4aa if: Add warning when elseif has no argument
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Alex Turbov <i.zaufi@gmail.com >
Merge-request: !10643
2025-04-16 09:40:23 -04:00
Brad King
503a7d73cd
Merge branch 'release-4.0'
2025-04-16 09:38:29 -04:00
Brad King
2d04de2532
Merge topic 'macos-usr-local-lib'
...
6e63080d39 macOS: Restore RPATH entry for libraries linked from /usr/local/lib
430174e65d CMakeDetermineCompilerABI: Comment implicit link directory exclusion
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10663
2025-04-16 09:38:29 -04:00
Brad King
e14d9b0f42
Merge topic 'macos-usr-local-lib' into release-4.0
...
6e63080d39 macOS: Restore RPATH entry for libraries linked from /usr/local/lib
430174e65d CMakeDetermineCompilerABI: Comment implicit link directory exclusion
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10663
2025-04-16 09:38:27 -04:00
Brad King
afcb012bcb
Merge branch 'release-4.0'
2025-04-16 09:37:09 -04:00
Brad King
9d1a0fa256
Merge topic 'normalize-input-paths'
...
cd4e72ca08 Normalize PWD environment variable before using it
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10659
2025-04-16 09:37:09 -04:00
Brad King
699f45ae33
Merge topic 'normalize-input-paths' into release-4.0
...
cd4e72ca08 Normalize PWD environment variable before using it
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10659
2025-04-16 09:37:07 -04:00
Brad King
6bbd572438
Merge topic 'patch-FindGLEW'
...
714966fe42 FindGLEW: Update documentation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10654
2025-04-16 09:27:39 -04:00
Brad King
7a5ac016f1
Merge topic 'patch-FindMPEG'
...
cea6119266 FindMPEG, FindMPEG2: Update documentation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10656
2025-04-16 09:18:29 -04:00
Brad King
7be87256a6
Merge topic 'patch-FindSDL'
...
905d461431 Find_SDL*: Update documentation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10657
2025-04-16 09:10:58 -04:00
xndcn
5781cf406f
Makefile: Fix progress with non-excluded targets in excluded dirs
...
Fixes : #26871
2025-04-16 09:04:17 -04:00
Kitware Robot
99ac7369d3
CMake Nightly Date Stamp
2025-04-16 00:07:14 -04:00
Peter Kokot
714966fe42
FindGLEW: Update documentation
...
- Synced module documentation with other similar find modules.
- Added examples section.
- Moved imported targets section to the top.
- Added note about config mode.
- Added CMake versions, when some variables got introduced as many were
added after the initial module.
2025-04-15 22:41:48 +02:00
Brad King
6e63080d39
macOS: Restore RPATH entry for libraries linked from /usr/local/lib
...
Since commit 7b19531291 (macOS: Do not pass any SDK/-isysroot to
compilers by default, 2024-11-06, v4.0.0-rc1~511^2) our default
invocation of compilers targeting macOS no longer passes `-isysroot`.
Without that, Xcode's compilers search `-L/usr/local/lib` by default
even though the macOS dynamic loader does not. Since `/usr/local/lib`
is not a fully-implemented implicit link directory, exclude it from our
detected `CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES` so that our generators
do not suppress `RPATH` entries for dependencies in that directory.
Fixes : #26867
2025-04-15 14:13:45 -04:00
Brad King
430174e65d
CMakeDetermineCompilerABI: Comment implicit link directory exclusion
2025-04-15 14:13:45 -04:00
Brad King
7c15231c4f
Merge topic 'update-kwsys'
...
c64dad3136 Merge branch 'upstream-KWSys' into update-kwsys
a48e7a6735 KWSys 2025-04-15 (83715610)
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10653
2025-04-15 12:21:04 -04:00
Brad King
f1b1b84b22
ASM_NASM: Honor ASM_NASM env var over standard NASM installation on Windows
...
Drop the custom `find_program` call in favor of the common
infrastructure.
Fixes : #26873
2025-04-15 12:00:15 -04:00
Martin Duffy
20858ddb29
CMake: Enable parallel install for CMake itself
2025-04-15 11:41:06 -04:00
Aliochat
2a8bc1c4aa
if: Add warning when elseif has no argument
...
Resolves : #26442
2025-04-15 10:58:25 -04:00
Brad King
89ab14b05b
cmGlobalGenerator: Constify IsExcluded use of cmLocalGenerator
2025-04-15 10:44:32 -04:00
Brad King
0aabf32590
cmGeneratorExpression: Constify use of cmLocalGenerator
2025-04-15 10:43:32 -04:00
Brad King
88f54fba43
cmLocalGenerator: Avoid unnecessary const-ness propagation
2025-04-15 10:41:32 -04:00
Brad King
8b4971ec25
Merge topic 'patch-FindGnuTLS'
...
6dff939916 FindGnuTLS: Update documentation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10650
2025-04-15 09:58:19 -04:00
Brad King
b3dd121aea
Merge topic 'patch-FindKDE3'
...
d7a4750c78 FindKDE3: Update documentation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10651
2025-04-15 09:56:46 -04:00
Brad King
c64dad3136
Merge branch 'upstream-KWSys' into update-kwsys
...
# By KWSys Upstream
* upstream-KWSys:
KWSys 2025-04-15 (83715610)
2025-04-15 09:55:03 -04:00
KWSys Upstream
a48e7a6735
KWSys 2025-04-15 (83715610)
...
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit 837156100be4dd48a491b27ebe15ed915bab9a76 (master).
Upstream Shortlog
-----------------
Brad King (1):
cc3df2a3 Fix -Wswitch-default warnings in switch statements
2025-04-15 09:55:03 -04:00
Brad King
ffec8739de
Merge topic 'patch-FindCURL'
...
2ab964c040 FindCURL: Update documentation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10646
2025-04-15 09:54:26 -04:00