aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/meson.build b/libcrystfel/meson.build
index 6a3b2195..fd4edd1b 100644
--- a/libcrystfel/meson.build
+++ b/libcrystfel/meson.build
@@ -29,9 +29,9 @@ libcrystfel_includes = include_directories('src')
# Find forkpty()
utildep = cc.find_library('util', required : true)
if cc.has_function('forkpty', dependencies : utildep, prefix : '#include <pty.h>')
- add_project_arguments('-DHAVE_FORKPTY_PTY_H', language : 'c')
+ conf_data.set10('HAVE_FORKPTY_PTY_H', 1)
elif cc.has_function('forkpty', dependencies : utildep, prefix : '#include <util.h>')
- add_project_arguments('-DHAVE_FORKPTY_UTIL_H', language : 'c')
+ conf_data.set10('HAVE_FORKPTY_UTIL_H', 1)
else
error('Couldn\'t find forkpty()')
endif