All: Use cmake-builtin `touch` for increased portability

This commit is contained in:
Jeffrey Pfau 2015-07-01 00:44:21 -07:00
parent ca0fb2ede6
commit 85cdb42a17
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ else()
endif()
endif()
add_custom_target(version-info ALL touch ${CMAKE_SOURCE_DIR}/src/util/version.c.in
add_custom_target(version-info ALL ${CMAKE_COMMAND} -E touch ${CMAKE_SOURCE_DIR}/src/util/version.c.in
COMMAND ${CMAKE_COMMAND}
-DGIT_COMMIT=${GIT_COMMIT}
-DGIT_COMMIT_SHORT=${GIT_COMMIT_SHORT}