mirror of https://github.com/microsoft/vcpkg.git
23 lines
663 B
Diff
23 lines
663 B
Diff
diff --git a/meson.build b/meson.build
|
|
index 07fd96f..6cfb436 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -148,6 +148,9 @@ install_headers(
|
|
# src
|
|
library_includes = include_directories('include')
|
|
library_options = ['-DBUILDING_LIBDICOM']
|
|
+if meson.is_cross_build()
|
|
+ dict_lookup = [ 'dicom-dict-lookup.c', 'dicom-dict-lookup.h' ]
|
|
+else
|
|
dict_build = executable(
|
|
'dicom-dict-build',
|
|
['src/dicom-dict-build.c', 'src/dicom-dict-tables.c'],
|
|
@@ -160,6 +163,7 @@ dict_lookup = custom_target(
|
|
command : [dict_build, '@OUTPUT@'],
|
|
output : ['dicom-dict-lookup.c', 'dicom-dict-lookup.h'],
|
|
)
|
|
+endif
|
|
library_sources = [
|
|
dict_lookup,
|
|
'src/getopt.c',
|