[cmake-developers] [CMake 0015447]: libpthreads not found on cmake >= 3.1
Mantis Bug Tracker
mantis at public.kitware.com
Sat Mar 14 12:13:04 EDT 2015
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
======================================================================
More information about the cmake-developers
mailing list