From 2c68bdb03e47a3a606fd2d57b703a65378f98897 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 18 Jun 2011 15:53:47 +0000 Subject: cmake: make python search into a find package module. --- CMakeLists.txt | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 089993ba917..c4863ea2981 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- cgit v1.2.3