I think it would be more portable to use FindThreads module that comes with
cmake. e.g.:
find_package (Threads)
target_link_libraries (my_program
${CMAKE_THREAD_LIBS_INIT}
)
if (CMAKE_USE_PTHREADS_INIT)
add_definitions(-DPIGLIT_HAS_PTHREADS)
endif ()
etc.
Jose
-
On Thu, Mar 27, 2014 at 08:08:50AM -0700, Jose Fonseca wrote:
I think it would be more portable to use FindThreads module that comes with
cmake. e.g.:
find_package (Threads)
target_link_libraries (my_program
${CMAKE_THREAD_LIBS_INIT}
)
if (CMAKE_USE_PTHREADS_INIT)
Set PIGLIT_HAS_PTHREADS as a CMake variable and cpp feature macro if
CMake succeeds in compiling a small test file that uses pthread_self(),
Future EGL_KHR_fence_sync tests will be multi-threaded.
Signed-off-by: Chad Versace chad.vers...@linux.intel.com
---
CMakeLists.txt | 18