Skip to content
Snippets Groups Projects
Commit cce958f5 authored by Jan-Michael Brummer's avatar Jan-Michael Brummer
Browse files

Only include ws2_32 on Windows systems

parent 7de497e8
No related branches found
No related tags found
No related merge requests found
......@@ -37,15 +37,18 @@ host_system = host_machine.system()
os_darwin = host_system == 'darwin'
os_linux = host_system == 'linux'
os_windows = host_system == 'windows'
capi_dep = []
capi_dep += cc.find_library('dl')
capi_dep += dependency('threads')
if os_linux
capi_dep += cc.find_library('rt')
else
capi_dep += cc.find_library('ws2_32')
capi_dep += cc.find_library('rt')
endif
if os_windows
capi_dep += cc.find_library('ws2_32')
endif
install_headers(capi_headers)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment