From 8422c5ae6db1c04830cddddd57999ae2560654a9 Mon Sep 17 00:00:00 2001 From: Todd Fiala Date: Fri, 4 Jul 2014 06:43:47 +0000 Subject: [PATCH] Fix Windows build when python is not explicitly enabled Currently Windows disables Python builds by default. This change ensures we don't process the scripts dir when we're on Windows unless we're explicitly enabling python, which prevents a build error. Change by Deepak Panickal llvm-svn: 212319 --- lldb/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt index 47f8771..da3482f 100644 --- a/lldb/CMakeLists.txt +++ b/lldb/CMakeLists.txt @@ -316,7 +316,9 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LLDB_COMPILE_FLAGS}") #add_subdirectory(include) add_subdirectory(docs) -add_subdirectory(scripts) +if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows" OR NOT LLDB_DISABLE_PYTHON) + add_subdirectory(scripts) +endif () add_subdirectory(source) add_subdirectory(test) add_subdirectory(tools) -- 2.7.4