aboutsummaryrefslogtreecommitdiff
path: root/lld/test
diff options
context:
space:
mode:
authorMichael Kruse <llvm-project@meinersbur.de>2024-06-04 01:31:36 +0200
committerGitHub <noreply@github.com>2024-06-04 01:31:36 +0200
commit30e983c40c71390c6c9506a8e4f914b85d009c3d (patch)
tree7c07594963b74701667b19b51e3f8bd794e1b96e /lld/test
parentccaccc3367aa3d892ca31eb11d4bcea4979bead1 (diff)
downloadllvm-30e983c40c71390c6c9506a8e4f914b85d009c3d.zip
llvm-30e983c40c71390c6c9506a8e4f914b85d009c3d.tar.gz
llvm-30e983c40c71390c6c9506a8e4f914b85d009c3d.tar.bz2
[lld] Revise IDE folder structure (#89747)
Update the folder titles for targets in the monorepository that have not seen taken care of for some time. These are the folders that targets are organized in Visual Studio and XCode (`set_property(TARGET <target> PROPERTY FOLDER "<title>")`) when using the respective CMake's IDE generator. * Ensure that every target is in a folder * Use a folder hierarchy with each LLVM subproject as a top-level folder * Use consistent folder names between subprojects * When using target-creating functions from AddLLVM.cmake, automatically deduce the folder. This reduces the number of `set_property`/`set_target_property`, but are still necessary when `add_custom_target`, `add_executable`, `add_library`, etc. are used. A LLVM_SUBPROJECT_TITLE definition is used for that in each subproject's root CMakeLists.txt.
Diffstat (limited to 'lld/test')
-rw-r--r--lld/test/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/test/CMakeLists.txt b/lld/test/CMakeLists.txt
index bb6164f..25d8f0a 100644
--- a/lld/test/CMakeLists.txt
+++ b/lld/test/CMakeLists.txt
@@ -83,10 +83,9 @@ add_lit_testsuite(check-lld "Running lld test suite"
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${LLD_TEST_DEPS}
)
-set_target_properties(check-lld PROPERTIES FOLDER "lld tests")
add_custom_target(lld-test-depends DEPENDS ${LLD_TEST_DEPS})
-set_target_properties(lld-test-depends PROPERTIES FOLDER "lld tests")
+set_target_properties(lld-test-depends PROPERTIES FOLDER "LLD/Tests")
add_lit_testsuites(LLD ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${LLD_TEST_DEPS}
@@ -95,4 +94,4 @@ add_lit_testsuites(LLD ${CMAKE_CURRENT_SOURCE_DIR}
# Add a legacy target spelling: lld-test
add_custom_target(lld-test)
add_dependencies(lld-test check-lld)
-set_target_properties(lld-test PROPERTIES FOLDER "lld tests")
+set_target_properties(lld-test PROPERTIES FOLDER "LLD/Tests")