mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-18 20:40:43 +01:00
Don't try and get svn info if we're not using an svn checkout.
This commit is contained in:
parent
aafb3a3b73
commit
6406216918
@ -11,8 +11,14 @@ set(BUILDBOT_REVISION $ENV{BUILDBOT_REVISION})
|
||||
if(NOT BUILDBOT_REVISION)
|
||||
find_package(Subversion)
|
||||
if(SUBVERSION_FOUND)
|
||||
Subversion_WC_INFO(${PROJECT_SOURCE_DIR} clementine)
|
||||
set(BUILDBOT_REVISION ${clementine_WC_REVISION})
|
||||
execute_process(COMMAND ${Subversion_SVN_EXECUTABLE} info ${PROJECT_SOURCE_DIR}
|
||||
RESULT_VARIABLE SVN_INFO_RESULT
|
||||
OUTPUT_QUIET
|
||||
ERROR_QUIET)
|
||||
if(${SVN_INFO_RESULT} EQUAL 0)
|
||||
Subversion_WC_INFO(${PROJECT_SOURCE_DIR} clementine)
|
||||
set(BUILDBOT_REVISION ${clementine_WC_REVISION})
|
||||
endif(${SVN_INFO_RESULT} EQUAL 0)
|
||||
endif(SUBVERSION_FOUND)
|
||||
endif(NOT BUILDBOT_REVISION)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user