diff options
author | Craig Scott <craig.scott@crascit.com> | 2020-05-14 22:21:42 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2020-05-23 13:41:53 (GMT) |
commit | cbf2daeed08c21fc79cbcfa938a506a06b30e787 (patch) | |
tree | 24028bc84c635d8714543f1272a251ab7dbbfcd8 /Tests/RunCMake/ExternalProject/PreserveEmptyArgs.cmake | |
parent | 62816ff88c6d1bd8d1c00de5ed448ee915d69e00 (diff) | |
download | CMake-cbf2daeed08c21fc79cbcfa938a506a06b30e787.zip CMake-cbf2daeed08c21fc79cbcfa938a506a06b30e787.tar.gz CMake-cbf2daeed08c21fc79cbcfa938a506a06b30e787.tar.bz2 |
ExternalProject: Preserve empty string arguments
Diffstat (limited to 'Tests/RunCMake/ExternalProject/PreserveEmptyArgs.cmake')
-rw-r--r-- | Tests/RunCMake/ExternalProject/PreserveEmptyArgs.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalProject/PreserveEmptyArgs.cmake b/Tests/RunCMake/ExternalProject/PreserveEmptyArgs.cmake new file mode 100644 index 0000000..ded1000 --- /dev/null +++ b/Tests/RunCMake/ExternalProject/PreserveEmptyArgs.cmake @@ -0,0 +1,13 @@ +include(ExternalProject) + +set(script "${CMAKE_CURRENT_LIST_DIR}/countArgs.cmake") +ExternalProject_Add( + blankChecker + DOWNLOAD_COMMAND ${CMAKE_COMMAND} -P "${script}" download "" after + UPDATE_COMMAND ${CMAKE_COMMAND} -P "${script}" update "" after + PATCH_COMMAND ${CMAKE_COMMAND} -P "${script}" patch "" after + CONFIGURE_COMMAND ${CMAKE_COMMAND} -P "${script}" configure "" after + BUILD_COMMAND ${CMAKE_COMMAND} -P "${script}" build "" after + INSTALL_COMMAND ${CMAKE_COMMAND} -P "${script}" install "" after + TEST_COMMAND ${CMAKE_COMMAND} -P "${script}" test "" after +) |