[CMake] Remove check for the readline target.
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 5 Aug 2019 23:54:13 +0000 (23:54 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 5 Aug 2019 23:54:13 +0000 (23:54 +0000)
This was introduced when we were building a custom readline Python
module on Linux [1]. Now that the readline  target doesn't exist
anymore, it's safe to remove this dependency.

This fixes https://llvm.org/PR25136

[1] https://reviews.llvm.org/D13268

llvm-svn: 367956

lldb/CMakeLists.txt

index 5415ed8..5282e82 100644 (file)
@@ -209,10 +209,7 @@ if (NOT LLDB_DISABLE_PYTHON)
         DEPENDS ${lldb_scripts_dir}/lldb.py
         COMMENT "Python script sym-linking LLDB Python API")
 
-    if (TARGET readline)
-      set(readline_dep readline)
-    endif()
-    add_dependencies(finish_swig swig_wrapper liblldb lldb-argdumper ${readline_dep})
+    add_dependencies(finish_swig swig_wrapper liblldb lldb-argdumper)
     set_target_properties(finish_swig swig_wrapper PROPERTIES FOLDER "lldb misc")
 
     # Ensure we do the python post-build step when building lldb.