[cmake-developers] [CMake 0011333]: FindThreads incorrectly adds -pthread to linker options

Mantis Bug Tracker mantis at public.kitware.com
Tue Oct 19 07:13:59 EDT 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11333 
====================================================================== 
Reported By:                Rolf Eike Beer
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11333
Category:                   CMake
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2010-10-19 07:13 EDT
Last Modified:              2010-10-19 07:13 EDT
====================================================================== 
Summary:                    FindThreads incorrectly adds -pthread to linker
options
Description: 
FindThreads sets CMAKE_THREAD_LIBS_INIT to -pthread on QNX which leads to
this linker warning:

c++: unrecognized option '-pthread'

QNX has the phtread stuff in the standard library. The best way would IMHO
be to check if a program that uses pthread_* can be successfully linked
without specifying any linker option before trying out the different flags.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-19 07:13 Rolf Eike Beer New Issue                                    
======================================================================



More information about the cmake-developers mailing list