Throw fatal error if cmake finds python3
This commit is contained in:
parent
d4f0d3c314
commit
f3c6eba389
@ -34,6 +34,12 @@ project( BoostParts )
|
||||
set( Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5 )
|
||||
find_package( PythonLibs 2 REQUIRED )
|
||||
|
||||
if ( NOT PYTHONLIBS_VERSION_STRING VERSION_LESS "3.0.0" )
|
||||
message( FATAL_ERROR
|
||||
"CMake found python3 libs instead of python2 libs. YCM works only with "
|
||||
"python2.\n" )
|
||||
endif()
|
||||
|
||||
file( GLOB_RECURSE SOURCES *.cpp )
|
||||
|
||||
# We need to remove all the thread cpp files and then add them on a per-platform
|
||||
|
@ -22,6 +22,12 @@ project( ycm_core )
|
||||
set( Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5 )
|
||||
find_package( PythonLibs 2 REQUIRED )
|
||||
|
||||
if ( NOT PYTHONLIBS_VERSION_STRING VERSION_LESS "3.0.0" )
|
||||
message( FATAL_ERROR
|
||||
"CMake found python3 libs instead of python2 libs. YCM works only with "
|
||||
"python2.\n" )
|
||||
endif()
|
||||
|
||||
option( USE_CLANG_COMPLETER "Use Clang semantic completer for C/C++/ObjC" OFF )
|
||||
option( PATH_TO_LLVM_ROOT "Path to the root of a LLVM+Clang binary distribution" )
|
||||
option( USE_SYSTEM_LIBCLANG "Set to ON to use the system libclang library" OFF )
|
||||
|
Loading…
Reference in New Issue
Block a user