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

Peter Kümmel syntheticpp at gmx.net
Sat Jun 2 15:45:52 EDT 2012


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

> Peter


More information about the CMake mailing list