From 8478dff2562b4fc2ff62239c322f4ecf4b5d0e1e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 19 Aug 2021 15:32:08 +0200 Subject: Meson: Check for SLURM headers as well as library It seems that some systems have "-lslurm" but no . Therefore, we need to check for both. Of course, ideally the outer test using pkg-config should work. --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index acb33250..04c7cc2b 100644 --- a/meson.build +++ b/meson.build @@ -25,7 +25,9 @@ pthreaddep = dependency('threads', required: true) # Try via pkg-config first: slurmdep = dependency('slurm', required: false) if not slurmdep.found() - slurmdep = cc.find_library('slurm', required: false) + slurmdep = cc.find_library('slurm', + has_headers: 'slurm/slurm.h', + required: false) endif if slurmdep.found() -- cgit v1.2.3