On 04.06.2012 21:13, Dave Abrahams wrote:

OK, but I can't reproduce it on Ubuntu 12.04 64bit,
so I thought it must be something else-

Oh, now that's odd.  I wonder why it isn't working for me?


I've not tested on Ubuntu but LinuxMint 13, but I think that
should make no difference.

If you have the time, maybe it's better to start from scratch.
Attached the CMakeLists.txt which I've used.
It produces this output in an empty build folder
(after apt-get install libbz2-dev):

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so
-- 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
-- Configuring done
-- Generating done
-- Build files have been written to: /home/synth/sandbox/cmake/test

If you don't have a this output I will also set up a Ubuntu 12.04 and see what 
happens.

Peter
cmake_minimum_required(VERSION 2.8)
Find_PACKAGE(BZip2 REQUIRED)

--

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