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?

Peter



didn't work any better than the other command.

Assuming that you have CMake 2.8.8 you can tell it where the library
is with that command in the build dir:

cmake -D BZIP2_LIBRARY_RELEASE=/usr/lib/x86_64-linux-gnu/libbz2.so .

I'l try that... but it seems wrong.  autoconf would be able to find that
library, right?

I have no idea about autoconf, that's why I use CMake ;)

Eike
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to