mirror of https://github.com/mgba-emu/mgba.git
All: Use cmake-builtin `touch` for increased portability
This commit is contained in:
parent
ca0fb2ede6
commit
85cdb42a17
|
@ -107,7 +107,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
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}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
-DGIT_COMMIT=${GIT_COMMIT}
|
-DGIT_COMMIT=${GIT_COMMIT}
|
||||||
-DGIT_COMMIT_SHORT=${GIT_COMMIT_SHORT}
|
-DGIT_COMMIT_SHORT=${GIT_COMMIT_SHORT}
|
||||||
|
|
Loading…
Reference in New Issue