ENH: use target as source if source is empty
This commit is contained in:
parent
9b8926925b
commit
4988ad93c0
|
@ -35,13 +35,11 @@ ADD_LIBRARY(CMakeTestCLibraryShared SHARED testConly.c)
|
||||||
#
|
#
|
||||||
ADD_DEPENDENCIES(CMakeTestLibraryShared create_file)
|
ADD_DEPENDENCIES(CMakeTestLibraryShared create_file)
|
||||||
|
|
||||||
ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
|
ADD_CUSTOM_COMMAND(COMMAND ${CREATE_FILE_EXE}
|
||||||
COMMAND ${CREATE_FILE_EXE}
|
|
||||||
ARGS "${Complex_BINARY_DIR}/Library/postbuild.txt"
|
ARGS "${Complex_BINARY_DIR}/Library/postbuild.txt"
|
||||||
TARGET CMakeTestLibraryShared)
|
TARGET CMakeTestLibraryShared)
|
||||||
|
|
||||||
ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
|
ADD_CUSTOM_COMMAND(COMMAND ${CCOMMAND_COMMAND}
|
||||||
COMMAND ${CCOMMAND_COMMAND}
|
|
||||||
ARGS copy
|
ARGS copy
|
||||||
"${Complex_BINARY_DIR}/Library/postbuild.txt"
|
"${Complex_BINARY_DIR}/Library/postbuild.txt"
|
||||||
"${Complex_BINARY_DIR}/Library/postbuild2.txt"
|
"${Complex_BINARY_DIR}/Library/postbuild2.txt"
|
||||||
|
|
|
@ -35,13 +35,11 @@ ADD_LIBRARY(CMakeTestCLibraryShared SHARED testConly.c)
|
||||||
#
|
#
|
||||||
ADD_DEPENDENCIES(CMakeTestLibraryShared create_file)
|
ADD_DEPENDENCIES(CMakeTestLibraryShared create_file)
|
||||||
|
|
||||||
ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
|
ADD_CUSTOM_COMMAND(COMMAND ${CREATE_FILE_EXE}
|
||||||
COMMAND ${CREATE_FILE_EXE}
|
|
||||||
ARGS "${Complex_BINARY_DIR}/Library/postbuild.txt"
|
ARGS "${Complex_BINARY_DIR}/Library/postbuild.txt"
|
||||||
TARGET CMakeTestLibraryShared)
|
TARGET CMakeTestLibraryShared)
|
||||||
|
|
||||||
ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
|
ADD_CUSTOM_COMMAND(COMMAND ${CCOMMAND_COMMAND}
|
||||||
COMMAND ${CCOMMAND_COMMAND}
|
|
||||||
ARGS copy
|
ARGS copy
|
||||||
"${Complex_BINARY_DIR}/Library/postbuild.txt"
|
"${Complex_BINARY_DIR}/Library/postbuild.txt"
|
||||||
"${Complex_BINARY_DIR}/Library/postbuild2.txt"
|
"${Complex_BINARY_DIR}/Library/postbuild2.txt"
|
||||||
|
|
|
@ -35,13 +35,11 @@ ADD_LIBRARY(CMakeTestCLibraryShared SHARED testConly.c)
|
||||||
#
|
#
|
||||||
ADD_DEPENDENCIES(CMakeTestLibraryShared create_file)
|
ADD_DEPENDENCIES(CMakeTestLibraryShared create_file)
|
||||||
|
|
||||||
ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
|
ADD_CUSTOM_COMMAND(COMMAND ${CREATE_FILE_EXE}
|
||||||
COMMAND ${CREATE_FILE_EXE}
|
|
||||||
ARGS "${Complex_BINARY_DIR}/Library/postbuild.txt"
|
ARGS "${Complex_BINARY_DIR}/Library/postbuild.txt"
|
||||||
TARGET CMakeTestLibraryShared)
|
TARGET CMakeTestLibraryShared)
|
||||||
|
|
||||||
ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
|
ADD_CUSTOM_COMMAND(COMMAND ${CCOMMAND_COMMAND}
|
||||||
COMMAND ${CCOMMAND_COMMAND}
|
|
||||||
ARGS copy
|
ARGS copy
|
||||||
"${Complex_BINARY_DIR}/Library/postbuild.txt"
|
"${Complex_BINARY_DIR}/Library/postbuild.txt"
|
||||||
"${Complex_BINARY_DIR}/Library/postbuild2.txt"
|
"${Complex_BINARY_DIR}/Library/postbuild2.txt"
|
||||||
|
|
Loading…
Reference in New Issue