Wrong handling of pthread in FindBoost macro

Bug #1273331 reported by Arne Nordmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cmake (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When calling the macro find_package(Boost thread), I get different results for ${Boost_LIBRARIES} the first and the second time I execute cmake. First time, ${Boost_LIBRARIES} contains '/usr/lib/libboost_thread-mt.so;pthread', the second time, ${Boost_LIBRARIES} just contains '/usr/lib/libboost_thread-mt.so' (without pthread).
I attached a very simple cmake script to reproduce the error.

I reported this issue upstream[1] in cmake, where I was told, that the pthread handling is not done by cmake, but patched by Ubuntu.

This issue is still existing in quantal, but no longer in saucy.

[1] http://www.cmake.org/Bug/view.php?id=14720

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cmake 2.8.7-0ubuntu5
ProcVersionSignature: Ubuntu 3.5.0-45.68~precise1-generic 3.5.7.26
Uname: Linux 3.5.0-45-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Mon Jan 27 18:09:56 2014
InstallationMedia: Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130213)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cmake
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Arne Nordmann (launchpad-norro) wrote :
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

it should be fixed since a lot of time.

Changed in cmake (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.