#1567 CMake >= 3.1 does not add -lpthread
Metadata
Property | Value |
---|---|
Reported by | Christoph Grüninger (gruenich@iws.uni-stuttgart.de) |
Reported at | Feb 16, 2015 16:50 |
Type | Bug Report |
Version | 2.3 |
Operating System | Unspecified / All |
Last edited by | Christoph Grüninger (gruenich@iws.uni-stuttgart.de) |
Last edited at | Feb 24, 2015 07:54 |
Closed by | Christoph Grüninger (gruenich@iws.uni-stuttgart.de) |
Closed at | Feb 24, 2015 07:54 |
Closed in version | 2.4 |
Resolution | Fixed |
Comment | Fixed in 5569666d… Thanks to Jö and Christian for helping me identifying the reason for this bug. |
Description
Since Jö included support for threads, CMake errors out for me during the configure of dune-common. It seems to be a problem with CMake, as it checks for pthreads.h which I have not installed (I have libpth installed, but not libpth-devel).
Anyway, it should not error out. I don't want to use threads, thus it should not trigger an error. Threads are no strong dependency, right?
I'll track down the pthread.h issue. FindThread got some improvements in CMake 3.0, 3.1, and 3.2. I'll check whether is is fixed. If not, I'll file a bug report upstream.