Hi all, I noticed that FindThreads.cmake does not detect that Bionic (the Android C library) has pthreads built-in. Adding the following snippet to the front of the pthreads section (after pthread.h is found) in FindThreads.cmake seems to handle this case correctly.
CHECK_SYMBOL_EXISTS (pthread_create "pthread.h" CMAKE_HAVE_BUILTIN_PTHREAD_CREATE) IF (CMAKE_HAVE_BUILTIN_PTHREAD_CREATE) SET(CMAKE_USE_PTHREADS_INIT 1) SET(CMAKE_THREAD_LIBS_INIT ) SET(CMAKE_HAVE_THREADS_LIBRARY 1) SET(Threads_FOUND TRUE) ENDIF () Should I file this in Mantis? Gregory Peele, Jr. Senior Scientist Applied Research Associates, Inc. Central Florida Division
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake