cmake: Use cmake -E touch instead of touch #2730

CMake has a portable touch command using cmake -E touch, use
it instead of calling touch that is only available in Unix.
This commit is contained in:
Rui Abreu Ferreira 2015-05-23 14:12:16 +01:00 committed by Justin M. Keyes
parent 466bb84ff0
commit 8ef5a61dd6

View File

@ -138,7 +138,7 @@ if(USE_BUNDLED_BUSTED)
ARGS build xml 1.1.2-1 ${LUAROCKS_BUILDARGS}
COMMAND ${LUAROCKS_BINARY}
ARGS build ansicolors 1.0.2-3 ${LUAROCKS_BUILDARGS}
COMMAND touch ${HOSTDEPS_LIB_DIR}/luarocks/rocks/stable-busted-deps
COMMAND ${CMAKE_COMMAND} -E touch ${HOSTDEPS_LIB_DIR}/luarocks/rocks/stable-busted-deps
DEPENDS lpeg)
add_custom_target(stable-busted-deps
DEPENDS ${HOSTDEPS_LIB_DIR}/luarocks/rocks/stable-busted-deps)