summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-02-01 13:32:11 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-02-01 13:32:20 (GMT)
commit58d424bca1d4e4cfc755e2fba95fdf55f6e9f215 (patch)
tree75d40faa60701761f0448ceee655241f90c0d738 /Tests
parent3cabf45a99b8221d4402bf538d3e3b2d1869e003 (diff)
parent3b07ec631db67e2e44d9f39fb7727a2dafd07b6a (diff)
downloadCMake-58d424bca1d4e4cfc755e2fba95fdf55f6e9f215.zip
CMake-58d424bca1d4e4cfc755e2fba95fdf55f6e9f215.tar.gz
CMake-58d424bca1d4e4cfc755e2fba95fdf55f6e9f215.tar.bz2
Merge topic 'add_custom_command-target-alias'
3b07ec631d add_custom_command: Allow adding build event via ALIAS target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9201
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CustomCommand/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt
index 25df300..d46ee08 100644
--- a/Tests/CustomCommand/CMakeLists.txt
+++ b/Tests/CustomCommand/CMakeLists.txt
@@ -214,11 +214,13 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/generated_extern.cxx
add_executable(CustomCommandUsingTargetTest main.cxx ${CMAKE_CURRENT_BINARY_DIR}/generated_extern.cxx )
+add_executable(CustomCommandUsingTargetTestAlias ALIAS CustomCommandUsingTargetTest )
+
add_custom_target(RunTarget
COMMAND generator_extern ${CMAKE_CURRENT_BINARY_DIR}/run_target.cxx
)
-add_custom_command(TARGET CustomCommandUsingTargetTest POST_BUILD
+add_custom_command(TARGET CustomCommandUsingTargetTestAlias POST_BUILD
COMMAND dummy_generator ${CMAKE_CURRENT_BINARY_DIR}/generated_dummy.cxx)
add_subdirectory(GeneratorInExtraDir)