projectm-sys 1.2.2

Bindings for ProjectM
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
set(PROJECTM_VCS_VERSION "Unknown" CACHE STRING "projectM version control revision number, e.g. Git commit hash")

# Currently only supporting Git.
find_package(Git)

if(Git_FOUND)
    execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse HEAD
            OUTPUT_VARIABLE _git_ref
            ERROR_QUIET
            OUTPUT_STRIP_TRAILING_WHITESPACE
            )

    if(NOT _git_ref STREQUAL "")
        set(PROJECTM_VCS_VERSION "${_git_ref}" CACHE STRING "projectM version control revision number, e.g. Git commit hash" FORCE)
        message(STATUS "Git revision: ${_git_ref}")
    endif()
endif()