diff options
author | Thomas White <taw@physics.org> | 2020-07-29 16:41:41 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:45 +0200 |
commit | f9a6d5ea442e074d1e61585b572837f80e2ddac9 (patch) | |
tree | 7d8f05f545929c007822709f196a0392f015106f | |
parent | 976665b7cc8346962e759370469bb79b423cfed9 (diff) |
Use conf_data instead of -D
-rw-r--r-- | libcrystfel/meson.build | 4 |
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 |