From 2dc65f62d2525eb796135284bd3a43bc4027bad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Thu, 12 Jan 2012 16:09:27 +0000 Subject: [PATCH] if svn info ended up with an error, set variable to "" --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 68708643866..9f85b0c7ae5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()