Hi,

I'm having this issue that cmake using version 3.3.0. Python detection is finding different versions of interpreter and libraries. There are two version of Python installed, system one and homebrew one. cmake finds Interpreter from homebrew while libs are from system install.

Here's my CmakeLists

   find_package(PythonInterp)
   find_package(PythonLibs)

and configure output

   -- Found PythonInterp: /usr/local/bin/python (found version "2.7.11")
   -- Found PythonLibs: /usr/lib/libpython2.7.dylib (found version
   "2.7.10")

I also tried

   find_package(PythonInterp)
   find_package(PythonLibs ${PYTHON_VERSION_STRING})

but got

   -- Found PythonInterp: /usr/local/bin/python (found version "2.7.11")
   -- Could NOT find PythonLibs: Found unsuitable version "2.7.10", but
   required is at least "2.7.11" (found /usr/lib/libpython2.7.dylib)

I suppose I can just over ride these manually, but shouldn't this just work? or am I doing it wrong?

Burlen

ps.

I tried to install cmake 3.4 on my system but bootstrap has a compile error.

I observed the same with cmake 3.4.1 on a colleagues Apple system that has system Python plus Annaconda Python. This leads me to think that it's not addressed in 3.4.1.

-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to