MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0014049 | CMake | Modules | public | 2013-03-29 12:37 | 2015-04-06 09:07 | |||||
Reporter | Nico Schlömer | |||||||||
Assigned To | Rolf Eike Beer | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | OS | OS Version | ||||||||
Product Version | ||||||||||
Target Version | CMake 3.1 | Fixed in Version | CMake 3.1 | |||||||
Summary | 0014049: FindThreads.cmake: several small bugs | |||||||||
Description | I just browsed through FindThreads.cmake and found that it probably needs to be looked through more carefully. Two things that I noticed: * The variable THREADS_HAVE_PTHREAD_ARG is referenced before it is first assigned, meaning that the test if(THREADS_HAVE_PTHREAD_ARG) is unconditionally false. * When going through the library search (-lpthreads, -lpthread, -lthread), each of those blocks should probably be encapsulated in if(NOT CMAKE_HAVE_THREADS_LIBRARY) [...] endif() Otherwise the keeps testing even though a library has already been found. The question remains what the priorities should be if -lpthreads is present, -pthread is a valid compiler flag, and threads are already built into the standard library. I'm thinking 3-2-1 would be a reasonable choice, in which case the order of the checking would have to be slightly adapted. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2013-03-29 12:37 | Nico Schlömer | New Issue | ||||||||
2013-04-01 10:05 | Brad King | Assigned To | => Rolf Eike Beer | |||||||
2013-04-01 10:05 | Brad King | Status | new => assigned | |||||||
2014-03-25 18:58 | Rolf Eike Beer | Note Added: 0035513 | ||||||||
2014-08-01 14:55 | Nico Schlömer | Note Added: 0036540 | ||||||||
2014-10-06 15:46 | Rolf Eike Beer | Relationship added | parent of 0014767 | |||||||
2014-10-06 15:47 | Rolf Eike Beer | Status | assigned => resolved | |||||||
2014-10-06 15:47 | Rolf Eike Beer | Resolution | open => fixed | |||||||
2014-10-06 15:47 | Rolf Eike Beer | Fixed in Version | => CMake 3.1 | |||||||
2014-10-06 15:47 | Rolf Eike Beer | Target Version | => CMake 3.1 | |||||||
2015-04-06 09:07 | Robert Maynard | Note Added: 0038418 | ||||||||
2015-04-06 09:07 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|