Browse Source

Merge pull request #136 from libRocket/python2-fix

Make sure we always get python2, not python3
Tom Mason 11 years ago
parent
commit
4c15607085
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Build/CMakeLists.txt

+ 2 - 2
Build/CMakeLists.txt

@@ -78,8 +78,8 @@ mark_as_advanced(FREETYPE_INCLUDE_DIRS FREETYPE_LIBRARY FREETYPE_LINK_DIRECTORIE
 
 # Boost and Python
 if(BUILD_PYTHON_BINDINGS)
-    find_package(PythonInterp REQUIRED)
-    find_package(PythonLibs REQUIRED)
+    find_package(PythonInterp 2 REQUIRED)
+    find_package(PythonLibs 2 REQUIRED)
     execute_process(
         COMMAND ${PYTHON_EXECUTABLE} -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix=''))"
         OUTPUT_VARIABLE PYTHON_INSTDIR