aboutsummaryrefslogtreecommitdiff
path: root/test cases/cmake
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-03-28 12:07:56 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2020-03-29 19:35:37 +0300
commit95e7477d120ef8ff4d86aa1c669ad0ad9c5835e1 (patch)
tree651b41f83abf5819b429fa6b5202cac15feb0b80 /test cases/cmake
parent4bfc143c5e83160327cd5cf0508849691c3bb678 (diff)
downloadmeson-95e7477d120ef8ff4d86aa1c669ad0ad9c5835e1.zip
meson-95e7477d120ef8ff4d86aa1c669ad0ad9c5835e1.tar.gz
meson-95e7477d120ef8ff4d86aa1c669ad0ad9c5835e1.tar.bz2
cmake: Only expand executable targets in COMMAND (fixes #6857)
Diffstat (limited to 'test cases/cmake')
-rw-r--r--test cases/cmake/8 custom command/subprojects/cmMod/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/test cases/cmake/8 custom command/subprojects/cmMod/CMakeLists.txt b/test cases/cmake/8 custom command/subprojects/cmMod/CMakeLists.txt
index c7797db..39b19d7 100644
--- a/test cases/cmake/8 custom command/subprojects/cmMod/CMakeLists.txt
+++ b/test cases/cmake/8 custom command/subprojects/cmMod/CMakeLists.txt
@@ -125,5 +125,9 @@ add_custom_target(args_test_cmd
)
add_custom_target(macro_name_cmd COMMAND macro_name)
+# Only executable targets are replaced in the command
+# all other target names are kept as is
+add_custom_target(clang-format COMMAND clang-format -i cmMod.cpp)
+
add_dependencies(cmModLib args_test_cmd tgtCpyTest4)
add_dependencies(args_test_cmd macro_name_cmd;gen;mycpy)