Package: cmake
Version: 2.8.9-1
Severity: normal

If python2.7-dev as well as libpython3.2 are installed,
INCLUDE(FindPythonLibs) uses different versions of Python in
PYTHON_INCLUDE_DIR and PYTHON_LIBRARY. I believe it should use the same
version for both of them.

$ cd $(mktemp -d)
$ echo 'INCLUDE(FindPythonLibs)' > CMakeLists.txt
$ cmake .
-- The C compiler identification is GNU 4.7.1
-- The CXX compiler identification is GNU 4.7.1
-- 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 PythonLibs: /usr/lib/python3.2/config/libpython3.2.so (found
version "2.7.3")
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.9AfXAvEx3i
$ fgrep -i python CMakeCache.txt
PYTHON_INCLUDE_DIR:PATH=/usr/include/python2.7
PYTHON_LIBRARY:FILEPATH=/usr/lib/python3.2/config/libpython3.2.so
//Details about finding PythonLibs
FIND_PACKAGE_MESSAGE_DETAILS_PythonLibs:INTERNAL=[/usr/lib/python3.2/config/libpython3.2.so][/usr/include/python2.7][v2.7.3()]
//ADVANCED property for variable: PYTHON_INCLUDE_DIR
PYTHON_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: PYTHON_LIBRARY
PYTHON_LIBRARY-ADVANCED:INTERNAL=1
$


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (400, 'unstable'), (300, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.4.9 (SMP w/2 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cmake depends on:
ii  cmake-data         2.8.9-1
ii  libarchive12       3.0.4-2
ii  libc6              2.13-35
ii  libcurl3-gnutls    7.26.0-1
ii  libexpat1          2.1.0-1
ii  libgcc1            1:4.7.1-2
ii  libstdc++6         4.7.1-2
ii  libxmlrpc-core-c3  1.16.33-3.1
ii  procps             1:3.3.3-2
ii  zlib1g             1:1.2.7.dfsg-13

cmake recommends no packages.

Versions of packages cmake suggests:
ii  gcc   4:4.7.1-1
ii  make  3.82-1

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to