All: Use cmake-builtin `touch` for increased portability
Jeffrey Pfau jeffrey@endrift.com
Wed, 01 Jul 2015 00:44:21 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
CMakeLists.txt
→
CMakeLists.txt
@@ -107,7 +107,7 @@ set(VERSION_STRING ${LIB_VERSION_ABI}-${VERSION_STRING})
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}