ENH: add a test to check if more than one post-build command can be attached. it fails right now.
This commit is contained in:
parent
b26be30740
commit
9d0a4b8a5f
|
@ -541,12 +541,14 @@ int main()
|
|||
// ----------------------------------------------------------------------
|
||||
// A post-build custom-command has been attached to the lib (see Library/).
|
||||
// It runs ${CREATE_FILE_EXE} which will create a file.
|
||||
// It also copies that file again using CCOMMAND.
|
||||
//
|
||||
// WARNING: if you run 'complex' manually, this *will* fail, because
|
||||
// the file was removed the last time 'complex' was run, and it is
|
||||
// only created during a build.
|
||||
|
||||
TestAndRemoveFile(BINARY_DIR "/Library/postbuild.txt");
|
||||
TestAndRemoveFile(BINARY_DIR "/Library/postbuild2.txt");
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// A custom target has been created (see Library/).
|
||||
|
|
|
@ -40,6 +40,13 @@ ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
|
|||
ARGS "${Complex_BINARY_DIR}/Library/postbuild.txt"
|
||||
TARGET CMakeTestLibraryShared)
|
||||
|
||||
ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
|
||||
COMMAND ${CCOMMAND_COMMAND}
|
||||
ARGS copy
|
||||
"${Complex_BINARY_DIR}/Library/postbuild.txt"
|
||||
"${Complex_BINARY_DIR}/Library/postbuild2.txt"
|
||||
TARGET CMakeTestLibraryShared)
|
||||
|
||||
#
|
||||
# Add a custom target.
|
||||
# It runs ${CREATE_FILE_EXE} which will create a file.
|
||||
|
|
|
@ -541,12 +541,14 @@ int main()
|
|||
// ----------------------------------------------------------------------
|
||||
// A post-build custom-command has been attached to the lib (see Library/).
|
||||
// It runs ${CREATE_FILE_EXE} which will create a file.
|
||||
// It also copies that file again using CCOMMAND.
|
||||
//
|
||||
// WARNING: if you run 'complex' manually, this *will* fail, because
|
||||
// the file was removed the last time 'complex' was run, and it is
|
||||
// only created during a build.
|
||||
|
||||
TestAndRemoveFile(BINARY_DIR "/Library/postbuild.txt");
|
||||
TestAndRemoveFile(BINARY_DIR "/Library/postbuild2.txt");
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// A custom target has been created (see Library/).
|
||||
|
|
|
@ -40,6 +40,13 @@ ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
|
|||
ARGS "${Complex_BINARY_DIR}/Library/postbuild.txt"
|
||||
TARGET CMakeTestLibraryShared)
|
||||
|
||||
ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
|
||||
COMMAND ${CCOMMAND_COMMAND}
|
||||
ARGS copy
|
||||
"${Complex_BINARY_DIR}/Library/postbuild.txt"
|
||||
"${Complex_BINARY_DIR}/Library/postbuild2.txt"
|
||||
TARGET CMakeTestLibraryShared)
|
||||
|
||||
#
|
||||
# Add a custom target.
|
||||
# It runs ${CREATE_FILE_EXE} which will create a file.
|
||||
|
|
|
@ -541,12 +541,14 @@ int main()
|
|||
// ----------------------------------------------------------------------
|
||||
// A post-build custom-command has been attached to the lib (see Library/).
|
||||
// It runs ${CREATE_FILE_EXE} which will create a file.
|
||||
// It also copies that file again using CCOMMAND.
|
||||
//
|
||||
// WARNING: if you run 'complex' manually, this *will* fail, because
|
||||
// the file was removed the last time 'complex' was run, and it is
|
||||
// only created during a build.
|
||||
|
||||
TestAndRemoveFile(BINARY_DIR "/Library/postbuild.txt");
|
||||
TestAndRemoveFile(BINARY_DIR "/Library/postbuild2.txt");
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// A custom target has been created (see Library/).
|
||||
|
|
|
@ -40,6 +40,13 @@ ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
|
|||
ARGS "${Complex_BINARY_DIR}/Library/postbuild.txt"
|
||||
TARGET CMakeTestLibraryShared)
|
||||
|
||||
ADD_CUSTOM_COMMAND(SOURCE CMakeTestLibraryShared
|
||||
COMMAND ${CCOMMAND_COMMAND}
|
||||
ARGS copy
|
||||
"${Complex_BINARY_DIR}/Library/postbuild.txt"
|
||||
"${Complex_BINARY_DIR}/Library/postbuild2.txt"
|
||||
TARGET CMakeTestLibraryShared)
|
||||
|
||||
#
|
||||
# Add a custom target.
|
||||
# It runs ${CREATE_FILE_EXE} which will create a file.
|
||||
|
|
Loading…
Reference in New Issue