mirror of
https://github.com/json-c/json-c.git
synced 2026-04-05 05:19:07 +08:00
meson: replace target_machine with host_machine
The latter is the canonical way to express this. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -220,8 +220,8 @@ if host_machine.system() == 'windows'
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Compiler flags
|
# Compiler flags
|
||||||
message('target is ' + target_machine.system())
|
message('target is ' + host_machine.system())
|
||||||
if target_machine.system() == 'windows'
|
if host_machine.system() == 'windows'
|
||||||
# Cover any compiler on Windows attempting to use MSVC's standard library
|
# Cover any compiler on Windows attempting to use MSVC's standard library
|
||||||
add_project_arguments(['-D_CRT_NONSTDC_NO_DEPRECATE', '-D_CRT_SECURE_NO_WARNINGS'], language: 'c')
|
add_project_arguments(['-D_CRT_NONSTDC_NO_DEPRECATE', '-D_CRT_SECURE_NO_WARNINGS'], language: 'c')
|
||||||
endif
|
endif
|
||||||
@@ -269,7 +269,7 @@ install_headers(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Optional apps
|
# Optional apps
|
||||||
if get_option('build_apps') and target_machine.system() != 'windows'
|
if get_option('build_apps') and host_machine.system() != 'windows'
|
||||||
subdir('apps')
|
subdir('apps')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user