subversion_wc_info(${CMAKE_CURRENT_SOURCE_DIR} SVNINFO)This will fail when we're not inside a working copy (see http://www.vtk.org/Bug/view.php?id=10200), because the macro outputs an error in this case.
We call it conditionally based on whether the .svn folder exists at the root of your source tree, indicating a working copy; otherwise we get -rUNKNOWN.
Regards, Amine.