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
This commit is contained in:
Todd Fiala 2014-07-04 06:43:47 +00:00
parent 37d3fa7e36
commit 8422c5ae6d
1 changed files with 3 additions and 1 deletions

View File

@ -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)