cmake: make python search into a find package module.

This commit is contained in:
Campbell Barton
2011-06-18 15:53:47 +00:00
parent 5e59d0c8bb
commit 2c68bdb03e
3 changed files with 91 additions and 113 deletions

View File

@@ -317,16 +317,9 @@ if(UNIX AND NOT APPLE)
# No way to set py32. remove for now.
# find_package(PythonLibs)
# defines...
# PYTHON_VERSION
# PYTHON_INCLUDE_DIRS
# PYTHON_LIBRARY
# PYTHON_LIBPATH
# PYTHON_LINKFLAGS
include(build_files/cmake/FindPythonLibsUnix.cmake)
# Use our own instead, since wothout py is such a rare case,
# require this package
find_package(PythonLibsUnix REQUIRED)
endif()
if(WITH_SDL)