[CMake] (missing: BZIP2_LIBRARIES) (found version "1.0.6")??

Dave Abrahams dave at boostpro.com
Sat Jun 2 20:05:21 EDT 2012


on Sat Jun 02 2012, Peter Kümmel <syntheticpp-hi6Y0CQ0nG0-AT-public.gmane.org> wrote:

> On 02.06.2012 21:21, Peter Kümmel wrote:
>> On 02.06.2012 19:54, Rolf Eike Beer wrote:
>>>
>>>   It will look into e.g. /usr/lib and /usr/lib64
>>> (depending on your system), but not into /usr/lib/x86_64-linux-gnu. You
>>> can tell it to try by setting CMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu
>
>>> before calling CMake.
>>
>> But the doku says it looks into "<prefix>/lib/<arch>  if CMAKE_LIBRARY_ARCHITECTURE is set",
>> and when I test it with cmake 2.8.8 and 2.8.5 this simple CMAkeLists.txt,
>>
>> cmake_minimum_required(VERSION 2.8)
>> message(STATUS  "CMAKE_LIBRARY_ARCHITECTURE: ${CMAKE_LIBRARY_ARCHITECTURE}")
>> Find_PACKAGE(BZip2 REQUIRED)
>>
>> finds libbzip2:
>>
>> -- CMAKE_LIBRARY_ARCHITECTURE: x86_64-linux-gnu
>> -- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.5")
>> -- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so
>> -- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so - found
>>
>> Dave is CMAKE_LIBRARY_ARCHITECTURE set on your system?
>
> $ cmake .. --trace 2>&1 | grep x86
>
> gives here:
>
> /home/synth/t/CMakeFiles/CMakeSystem.cmake(6):  SET(CMAKE_SYSTEM_PROCESSOR x86_64 )
> /home/synth/t/CMakeFiles/CMakeSystem.cmake(11):  SET(CMAKE_HOST_SYSTEM_PROCESSOR x86_64 )
> /home/synth/t/CMakeFiles/CMakeCCompiler.cmake(32):  SET(CMAKE_C_LIBRARY_ARCHITECTURE x86_64-linux-gnu )
> /home/synth/t/CMakeFiles/CMakeCCompiler.cmake(43):  SET(CMAKE_LIBRARY_ARCHITECTURE x86_64-linux-gnu )
> /home/synth/t/CMakeFiles/CMakeCCompiler.cmake(50):
> SET(CMAKE_C_IMPLICIT_LINK_DIRECTORIES
> /usr/lib/gcc/x86_64-linux-gnu/4.6.1;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib
> )
>
> -- x86_64-linux-gnu
> -- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so

--8<---------------cut here---------------start------------->8---
dave at Ubu12:/tmp/qb/build$ ~/bin/cmake ../src --trace 2>&1 | grep x86
/tmp/qb/build/CMakeFiles/CMakeSystem.cmake(6):  SET(CMAKE_SYSTEM_PROCESSOR x86_64 )
/tmp/qb/build/CMakeFiles/CMakeSystem.cmake(11):  SET(CMAKE_HOST_SYSTEM_PROCESSOR x86_64 )
dave at Ubu12:/tmp/qb/build$ 
--8<---------------cut here---------------end--------------->8---

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com



More information about the CMake mailing list