From 61220ef405651ee8ab79196e2ddb02873b9fab44 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 27 Jun 2014 15:04:42 +0000 Subject: [PATCH] [cmake] When Python is disabled for LLDB, don't try to install the python bindings. For example, this prevents errors on systems that disable python because the system python isn't available. Without this, we still try to install things and get install errors when that doesn't work. llvm-svn: 211899 --- lldb/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt index 4cfa1d9..f6eb387 100644 --- a/lldb/CMakeLists.txt +++ b/lldb/CMakeLists.txt @@ -315,7 +315,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LLDB_COMPILE_FLAGS}") #add_subdirectory(include) add_subdirectory(docs) -if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") +if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows" AND NOT LLDB_DISABLE_PYTHON) add_subdirectory(scripts) endif() add_subdirectory(source) -- 2.7.4