|
@@ -19,13 +19,13 @@ if(GIT_FOUND)
|
|
|
execute_process(COMMAND ${GIT_EXECUTABLE} describe --abbrev=7 --dirty --always --tags RESULT_VARIABLE res_var OUTPUT_VARIABLE GIT_COM_ID )
|
|
|
if( NOT ${res_var} EQUAL 0 )
|
|
|
set( GIT_COMMIT_ID "unknown--git-commit-id-unknown")
|
|
|
- message( INFO "Git failed (not a repo, or no tags). Build will not contain git revision info." )
|
|
|
+ message( STATUS "Git failed (not a repo, or no tags). Build will not contain git revision info." )
|
|
|
else()
|
|
|
string( REPLACE "\n" "" GIT_COMMIT_ID ${GIT_COM_ID} )
|
|
|
endif()
|
|
|
else()
|
|
|
set( GIT_COMMIT_ID "unknown--no-git-found")
|
|
|
- message( INFO "Git not found. Build will not contain git revision info." )
|
|
|
+ message( STATUS "Git not found. Build will not contain git revision info." )
|
|
|
endif()
|
|
|
add_definitions("-DVERSION=${GIT_COMMIT_ID}")
|
|
|
|