From d4f0d3c3146dd579f9a0bb312ddbe90e2e6db6e6 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sat, 2 Feb 2013 12:11:37 -0800 Subject: [PATCH] Trying to force the use of python 2 --- cpp/BoostParts/CMakeLists.txt | 3 ++- cpp/ycm/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/BoostParts/CMakeLists.txt b/cpp/BoostParts/CMakeLists.txt index 4ced7d8f..51dd1f82 100644 --- a/cpp/BoostParts/CMakeLists.txt +++ b/cpp/BoostParts/CMakeLists.txt @@ -31,7 +31,8 @@ cmake_minimum_required( VERSION 2.8 ) project( BoostParts ) -find_package( PythonLibs REQUIRED ) +set( Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5 ) +find_package( PythonLibs 2 REQUIRED ) file( GLOB_RECURSE SOURCES *.cpp ) diff --git a/cpp/ycm/CMakeLists.txt b/cpp/ycm/CMakeLists.txt index 429fd5d4..b2514f8c 100644 --- a/cpp/ycm/CMakeLists.txt +++ b/cpp/ycm/CMakeLists.txt @@ -19,6 +19,7 @@ cmake_minimum_required( VERSION 2.8 ) project( ycm_core ) +set( Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5 ) find_package( PythonLibs 2 REQUIRED ) option( USE_CLANG_COMPLETER "Use Clang semantic completer for C/C++/ObjC" OFF )