etlegacy-libs/openal/version.cmake

12 lines
316 B
CMake
Raw Normal View History

2017-07-01 14:18:03 +00:00
EXECUTE_PROCESS(
COMMAND ${GIT_EXECUTABLE} rev-parse --abbrev-ref HEAD
OUTPUT_VARIABLE GIT_BRANCH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
EXECUTE_PROCESS(
COMMAND ${GIT_EXECUTABLE} log -1 --format=%h
OUTPUT_VARIABLE GIT_COMMIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
CONFIGURE_FILE(${SRC} ${DST})