diff options
author | Thierry Reding <treding@nvidia.com> | 2018-03-16 11:46:39 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2018-04-04 16:25:38 +0200 |
commit | 8b43b037eb95cb0297320c13fbbf139016344cbd (patch) | |
tree | 85ce46c3f02a0db5de39293c14df047666ad34ea | |
parent | 92b24a571cf6cb2992788fa118209fcd043cbed1 (diff) |
meson: Use proper empty dependencies
declare_dependency() returns a project internal dependency which is
always marked as found. However, that's not what we want for default
external dependencies. External dependencies should by default not be
found so that conditionals will behave correctly.
The proper way to do that is using dependency('', required : false).
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build index ee2b4151e2f..f6313f66f4d 100644 --- a/meson.build +++ b/meson.build @@ -831,7 +831,7 @@ else endif # Check for GCC style atomics -dep_atomic = declare_dependency() +dep_atomic = dependency('', required : false) if cc.compiles('int main() { int n; return __atomic_load_n(&n, __ATOMIC_ACQUIRE); }', name : 'GCC atomic builtins') |