aboutsummaryrefslogtreecommitdiff
path: root/test cases/cmake
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-04-12 15:11:37 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-04-12 15:11:37 +0200
commit4199cb32a513370b6dd68ea90cdd0e5b852dff23 (patch)
treee25fd44a0a9d8d0948a55c46a2ea3cb658439647 /test cases/cmake
parent03b86cdbed3cec9f60d3a683bcbde16c0a96ec1b (diff)
downloadmeson-4199cb32a513370b6dd68ea90cdd0e5b852dff23.zip
meson-4199cb32a513370b6dd68ea90cdd0e5b852dff23.tar.gz
meson-4199cb32a513370b6dd68ea90cdd0e5b852dff23.tar.bz2
cmake: Fix custom command CMake list issue
Diffstat (limited to 'test cases/cmake')
-rw-r--r--test cases/cmake/8 custom command/subprojects/cmMod/CMakeLists.txt6
1 files changed, 6 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 39b19d7..5c75e65 100644
--- a/test cases/cmake/8 custom command/subprojects/cmMod/CMakeLists.txt
+++ b/test cases/cmake/8 custom command/subprojects/cmMod/CMakeLists.txt
@@ -16,9 +16,15 @@ add_custom_command(
COMMAND gen ARGS genTest
)
+set(CMD_PART)
+list(APPEND CMD_PART COMMAND mycpy cpyBase.cpp.in cpyBase.cpp.in.gen)
+list(APPEND CMD_PART COMMAND mycpy cpyBase.cpp.in.gen cpyBase.cpp.out)
+list(APPEND CMD_PART COMMAND mycpy cpyBase.cpp.out cpyBase.cpp.something)
+
add_custom_command(
OUTPUT cpyBase.cpp
COMMAND mycpy "${CMAKE_CURRENT_SOURCE_DIR}/cpyBase.cpp.am" cpyBase.cpp.in
+ ${CMD_PART}
COMMAND mycpy cpyBase.cpp.in cpyBase.cpp.something
COMMAND mycpy cpyBase.cpp.something cpyBase.cpp.IAmRunningOutOfIdeas
COMMAND mycpy cpyBase.cpp.IAmRunningOutOfIdeas cpyBase.cpp