diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt --- a/lldb/CMakeLists.txt +++ b/lldb/CMakeLists.txt @@ -219,6 +219,6 @@ endif () endif () -if(LLDB_BUILT_STANDALONE) +if(LLDB_BUILT_STANDALONE AND NOT LLVM_ENABLE_IDE) llvm_distribution_add_targets() endif() diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake --- a/lldb/cmake/modules/AddLLDB.cmake +++ b/lldb/cmake/modules/AddLLDB.cmake @@ -122,7 +122,11 @@ target_compile_options(${name} PRIVATE ${PARAM_EXTRA_CXXFLAGS}) if(PARAM_PLUGIN) - set_target_properties(${name} PROPERTIES FOLDER "lldb plugins") + get_property(parent_dir DIRECTORY PROPERTY PARENT_DIRECTORY) + if(EXISTS ${parent_dir}) + get_filename_component(category ${parent_dir} NAME) + set_target_properties(${name} PROPERTIES FOLDER "lldb plugins/${category}") + endif() else() set_target_properties(${name} PROPERTIES FOLDER "lldb libraries") endif() diff --git a/lldb/cmake/modules/LLDBFramework.cmake b/lldb/cmake/modules/LLDBFramework.cmake --- a/lldb/cmake/modules/LLDBFramework.cmake +++ b/lldb/cmake/modules/LLDBFramework.cmake @@ -78,6 +78,7 @@ # Wrap output in a target, so lldb-framework can depend on it. add_custom_target(liblldb-resource-headers DEPENDS ${lldb_staged_headers}) +set_target_properties(liblldb-resource-headers PROPERTIES FOLDER "lldb misc") add_dependencies(liblldb liblldb-resource-headers) # At build time, copy the staged headers into the framework bundle (and do