if svn info ended up with an error, set variable to ""

This commit is contained in:
Sébastien Loriot 2012-01-12 16:09:27 +00:00
parent cf8e3b77c2
commit 2dc65f62d2
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ if ( ${CGAL_SCM_NAME} STREQUAL "svn" )
RESULT_VARIABLE svn_error)
if(svn_error)
message("Warning: `svn info --xml \"${dir}\"` returned an error!")
set(${variable} "")
endif()
set(${variable} ${${variable}} PARENT_SCOPE)
endfunction()