mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-19 04:50:16 +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)
|
if(NOT BUILDBOT_REVISION)
|
||||||
find_package(Subversion)
|
find_package(Subversion)
|
||||||
if(SUBVERSION_FOUND)
|
if(SUBVERSION_FOUND)
|
||||||
|
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)
|
Subversion_WC_INFO(${PROJECT_SOURCE_DIR} clementine)
|
||||||
set(BUILDBOT_REVISION ${clementine_WC_REVISION})
|
set(BUILDBOT_REVISION ${clementine_WC_REVISION})
|
||||||
|
endif(${SVN_INFO_RESULT} EQUAL 0)
|
||||||
endif(SUBVERSION_FOUND)
|
endif(SUBVERSION_FOUND)
|
||||||
endif(NOT BUILDBOT_REVISION)
|
endif(NOT BUILDBOT_REVISION)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user