diff options
author | Thomas White <taw@physics.org> | 2020-08-27 16:47:42 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-08-27 16:47:42 +0200 |
commit | 4a9e89cc81fe8af26e5f813fdd26e2717d876a68 (patch) | |
tree | d3d7446a551fcb9e1176b5ce471edf27ea7816e8 | |
parent | d08b35b6607d926f03c18a80f84e04755770fc95 (diff) |
Only compile image-msgpack.c if MessagePack is found
-rw-r--r-- | libcrystfel/meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcrystfel/meson.build b/libcrystfel/meson.build index db624ec5..93407919 100644 --- a/libcrystfel/meson.build +++ b/libcrystfel/meson.build @@ -96,7 +96,6 @@ libcrystfel_sources = ['src/image.c', 'src/detgeom.c', 'src/image-cbf.c', 'src/image-hdf5.c', - 'src/image-msgpack.c', 'src/indexers/dirax.c', 'src/indexers/felix.c', 'src/indexers/mosflm.c', @@ -109,6 +108,10 @@ libcrystfel_sources = ['src/image.c', symop_parse_ch, ] +if msgpackdep.found() + libcrystfel_sources += 'src/image-msgpack.c' +endif + configure_file(input : 'config.h.in', output : 'config.h', configuration : conf_data) |