Commit 27b2914a authored by Vinson Lee's avatar Vinson Lee

cmake: Check for linux/sync_file.h for egl_khr_fence_sync.

Fixes: 2e423dd3 ("egl_khr_fence_sync: Add sw_sync lib.")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101641Signed-off-by: Vinson Lee's avatarVinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
Reviewed-by: Rafael Antognolli's avatarRafael Antognolli <rafael.antognolli@intel.com>
parent 3b9e5ba1
......@@ -470,6 +470,7 @@ check_include_file(sys/resource.h HAVE_SYS_RESOURCE_H)
check_include_file(sys/stat.h HAVE_SYS_STAT_H)
check_include_file(unistd.h HAVE_UNISTD_H)
check_include_file(fcntl.h HAVE_FCNTL_H)
check_include_file(linux/sync_file.h HAVE_LINUX_SYNC_FILE_H)
if(DEFINED PIGLIT_INSTALL_VERSION)
set(PIGLIT_INSTALL_VERSION_SUFFIX
......
......@@ -4,6 +4,8 @@ if(PIGLIT_HAS_PTHREADS)
link_libraries(${CMAKE_THREAD_LIBS_INIT})
endif()
if(HAVE_LINUX_SYNC_FILE_H)
piglit_add_executable(egl_khr_fence_sync egl_khr_fence_sync.c sw_sync.c)
endif()
# vim: ft=cmake:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment