You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you set build_by_default : false in a subproject, one would expect the target to not be built by default. I later discovered this is because install : true, which is not documented to be related to whether it will be be built by default.
The use case that is leading to wanting this is that this is a clang-tidy plugin that I would like to build only on demand when you actually run the clang-tidy custom target, and it is in a subproject because I would like to be able to also pass it in externally to easily use Nix build caching. Actually it would be even more ideal if the subproject were not even configured if the dependent target is not demanded, since there is no reason to need it to be, but I would also accept skipping the build.
Describe the bug
If you set
build_by_default : false
in a subproject, one would expect the target to not be built by default. I later discovered this is becauseinstall : true
, which is not documented to be related to whether it will be be built by default.The use case that is leading to wanting this is that this is a clang-tidy plugin that I would like to build only on demand when you actually run the
clang-tidy
custom target, and it is in a subproject because I would like to be able to also pass it in externally to easily use Nix build caching. Actually it would be even more ideal if the subproject were not even configured if the dependent target is not demanded, since there is no reason to need it to be, but I would also accept skipping the build.To Reproduce
https://git.jade.fyi/jade/meson-repro-20240731
or, reproduce the below file structure:
Repro:
Observe that
liblix-clang-tidy.so
is incorrectly included inall
in spite of being explicitly set to not be built by default.Expected behavior
I expect the subproject target to not be built by default if it is not set to be built by default.
system parameters
meson --version
: 1.5.1ninja --version
if it's a Ninja build: don't even have to run ninja to find this problem, but 1.12.1The text was updated successfully, but these errors were encountered: