Re: [Piglit] [PATCH 12/13] cmake: Check for pthreads

2014-03-27 Thread Jose Fonseca
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 -

Re: [Piglit] [PATCH 12/13] cmake: Check for pthreads

2014-03-27 Thread Chad Versace
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)

[Piglit] [PATCH 12/13] cmake: Check for pthreads

2014-03-26 Thread Chad Versace
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