summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2018-03-16 11:46:39 +0100
committerThierry Reding <treding@nvidia.com>2018-04-04 16:25:38 +0200
commit8b43b037eb95cb0297320c13fbbf139016344cbd (patch)
tree85ce46c3f02a0db5de39293c14df047666ad34ea
parent92b24a571cf6cb2992788fa118209fcd043cbed1 (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.build2
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')