Skip to content

[pull] master from Kitware:master#2491

Merged
pull[bot] merged 19 commits intoMu-L:masterfrom
Kitware:master
May 27, 2025
Merged

[pull] master from Kitware:master#2491
pull[bot] merged 19 commits intoMu-L:masterfrom
Kitware:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented May 27, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

mathstuf and others added 19 commits May 22, 2025 16:02
The install tests check that the output matches content including the
"status" portion of the output. Unset the variable to avoid leakage from
development environments.
The components checked for `.empty()` are never actually empty.
Some code paths end up recomputing some paths that are computed in
member variables. Use them.
With all code starting to go towards using per-target directories, Xcode
needs to use one as well.
This will allow object locations to be changed in a single place.
Refactoring in commit c4e8909 (try_compile: consistently add language
properties, 2020-06-15, v3.19.0-rc1~633^2) accidentally dropped the
`_LINK` part of the name.  It also miscounted array indexes in a way
that happened to propagate `CMAKE_<LANG>_LINK_NO_PIE_SUPPORTED` whether
or not it is needed for the CMP0083 NEW behavior.  Simplify the code and
fix the variable name.

Fixes: #26948
In a coming change to shorten directory paths, this allows one place to
decide how to compute the target path root.
…put root

When target directories are shortened, the `CMakeFiles` path component
will be part of the root, not the target directory. Since other files
end up constructing paths manually, move the differing component into
the correct logical path construction part.
Visual Studio doesn't use a `CMakeFiles` subdirectory for its support
directories. However, some codepaths expect to use paths which are
always under `CMakeFiles`. Add a mechanism to keep the path for such
files.
b0eb74c try_compile: Restore propagation of CMAKE_<LANG>_LINK_PIE_SUPPORTED

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10818
c95a834 cmLocalGenerator: add an override for CMakeFiles-using paths
35d32b8 cmLocalGenerator: move the `CMakeFiles` subdir from the target to output root
bc19e42 generators: use `GetObjectOutputRoot` to compute target directories
b1d9a53 cmLocalGenerator: add a `GetObjectOutputRoot` method
b82a74d generators: use GetSupportDirectory() in more places
36f85ee cmGeneratorTarget: query the local generator for the target directory
ff5d7bc cmLocalXCodeGenerator: use a per-target directory
aafd771 cmNinjaTargetGenerator: use `GetObjectFileDir` where possible
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10812
@pull pull bot added the ⤵️ pull label May 27, 2025
@pull pull bot merged commit 2cf735a into Mu-L:master May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants