The following issue has been SUBMITTED. ====================================================================== https://public.kitware.com/Bug/view.php?id=15447 ====================================================================== Reported By: azrdev Assigned To: ====================================================================== Project: CMake Issue ID: 15447 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2015-03-14 17:13 CET Last Modified: 2015-03-14 17:13 CET ====================================================================== Summary: libpthreads not found on cmake >= 3.1 Description: Originally this popped up when trying to update the AUR tulip packet to 4.6.1 (<https://aur.archlinux.org/packages/tulip/>)
The CMakeLists.txt for that software contains the line: FIND_PACKAGE(Threads) Which started to break after installing cmake 3.1 (or higher): Running cmake yields -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE CMake Error at CMakeLists.txt:111 (SET_TARGET_PROPERTIES): INTERFACE_LIBRARY targets may only have whitelisted properties. The property "INSTALL_RPATH" is not allowed. Call Stack (most recent call first): /usr/share/cmake-3.1/Modules/FindThreads.cmake:207 (add_library) CMakeLists.txt:234 (FIND_PACKAGE) CMakeError.txt contains the log for "Determining if the pthread_create exist" especially the line /usr/bin/ld: cannot find -lpthreads According to manual tests, that argument should read -lpthread (without the s). Please tell if you need any other information. The CMakeError.log is attached. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2015-03-14 17:13 azrdev New Issue 2015-03-14 17:13 azrdev File Added: CMakeError.log ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
