diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2002-04-11 14:11:42 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2002-04-11 14:11:42 (GMT) |
commit | 4988ad93c06d62186025b8061e01b06aa9c201f4 (patch) | |
tree | f1db6a8fcf0fd85ff2c1042d47b0a27d100ed8a4 /Tests/ComplexOneConfig/Library | |
parent | 9b8926925b2c50afff276d25a5ee6eadd31ec477 (diff) | |
download | CMake-4988ad93c06d62186025b8061e01b06aa9c201f4.zip CMake-4988ad93c06d62186025b8061e01b06aa9c201f4.tar.gz CMake-4988ad93c06d62186025b8061e01b06aa9c201f4.tar.bz2 |
ENH: use target as source if source is empty
Diffstat (limited to 'Tests/ComplexOneConfig/Library')
-rw-r--r-- | Tests/ComplexOneConfig/Library/CMakeLists.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Tests/ComplexOneConfig/Library/CMakeLists.txt b/Tests/ComplexOneConfig/Library/CMakeLists.txt index 1aa325a..c354c34 100644 --- a/Tests/ComplexOneConfig/Library/CMakeLists.txt +++ b/Tests/ComplexOneConfig/Library/CMakeLists.txt @@ -35,13 +35,11 @@ ADD_LIBRARY(CMakeTestCLibraryShared SHARED testConly.c) # ADD_DEPENDENCIES(CMakeTestLibraryShared create_file) -ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared - COMMAND ${CREATE_FILE_EXE} +ADD_CUSTOM_COMMAND(COMMAND ${CREATE_FILE_EXE} ARGS "${Complex_BINARY_DIR}/Library/postbuild.txt" TARGET CMakeTestLibraryShared) -ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared - COMMAND ${CCOMMAND_COMMAND} +ADD_CUSTOM_COMMAND(COMMAND ${CCOMMAND_COMMAND} ARGS copy "${Complex_BINARY_DIR}/Library/postbuild.txt" "${Complex_BINARY_DIR}/Library/postbuild2.txt" |