Meson recommends using 'threads' dependency instead of 'pthread'

This commit is contained in:
jackun 2020-03-22 02:44:17 +02:00
parent f92a2a07db
commit ab9c9ea7ea
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

View File

@ -111,6 +111,7 @@ inc_common = [
]
dep_vulkan = dependency('vulkan', required: get_option('use_system_vulkan'))
dep_pthread = dependency('threads')
# Check for generic C arguments
c_args = []
@ -183,8 +184,6 @@ else
dep_dl = cc.find_library('dl')
endif
dep_pthread = cc.find_library('pthread')
if dep_vulkan.found()
vulkan_headers = []
datadir = get_option('datadir')