Commit 02a814d4 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Create the gitversion.h file when compiling the Python module.

Showing with 5 additions and 0 deletions
...@@ -53,6 +53,11 @@ else() ...@@ -53,6 +53,11 @@ else()
endif() endif()
STRING(REGEX REPLACE "([0-9.]+)-?.*" "\\1" LINPHONE_VERSION "${LINPHONE_GIT_REVISION}") STRING(REGEX REPLACE "([0-9.]+)-?.*" "\\1" LINPHONE_VERSION "${LINPHONE_GIT_REVISION}")
execute_process(
COMMAND ${CMAKE_COMMAND} -E echo "#define LINPHONE_GIT_REVISION \"${LINPHONE_GIT_REVISION}\""
OUTPUT_FILE ${CMAKE_CURRENT_BINARY_DIR}/gitversion.h
)
# Find the doxygen XML directory # Find the doxygen XML directory
file(GLOB XML_DIR "${CMAKE_INSTALL_PREFIX}/share/doc/linphone-*/xml") file(GLOB XML_DIR "${CMAKE_INSTALL_PREFIX}/share/doc/linphone-*/xml")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment