[Pkg-cmake-team] Bug#853028: Bug#853028: cmake does not find bzip2 (libbz2)

Felix Geyer fgeyer at debian.org
Sun Jan 29 10:40:58 UTC 2017


Hi,

On 29.01.2017 02:45, enrico wrote:
> Package: cmake
> Version: 3.7.2-1
> Severity: normal
> 
> Dear Maintainer,
> 
> Cmake can't find libbz2, nor by using find_package(BZip2) nor using find_library(). The cmake module is is the one shipped with cmake-data I think.
> libbz2 is found at /lib/x86_64-linux-gnu/ and linking the so manually into /usr/lib/x86_64-linux-gnu/ seems to work.
> 
> Look at CMakeFiles/CMakeOutput.txt,the LIBRARY_PATH variable seems to be correct
> 
> LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../:/lib/:/usr/lib/
> 
> I guess that something is wrong with find_library.
> What would be the preferred work around for this?

Works fine here (and in the automated tests).

Can you please test this in a fresh project that just contains "find_package(BZip2)"?

Felix



More information about the Pkg-cmake-team mailing list