[CMake] Reinstate LLDB_CAN_USE_LLDB_SERVER
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 13 May 2019 22:55:11 +0000 (22:55 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 13 May 2019 22:55:11 +0000 (22:55 +0000)
commit1d8b2a066191e0092a4db830c323cefeb3331d54
treea9ae58107925dfbe0bf720b6229b42ca2e5c86a9
parent51e79f06342b7a39f2e794b19bcd464d4c592f05
[CMake] Reinstate LLDB_CAN_USE_LLDB_SERVER

We cannot manipulate the LLDB_TOOL_LLDB_SERVER_BUILD directly from
LLDBConfig.cmake because this would set the variable before the option
is defined in AddLLVM.cmake. Instead, we need to use the
LLDB_CAN_USE_LLDB_SERVER variable to conditionally add the lldb-server
subdirectory. This should ensure the variable doesn't get cleared.

llvm-svn: 360631
lldb/cmake/modules/LLDBConfig.cmake
lldb/tools/CMakeLists.txt