[cmake] When Python is disabled for LLDB, don't try to install the
authorChandler Carruth <chandlerc@gmail.com>
Fri, 27 Jun 2014 15:04:42 +0000 (15:04 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 27 Jun 2014 15:04:42 +0000 (15:04 +0000)
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

index 4cfa1d9..f6eb387 100644 (file)
@@ -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)