From 63a24c541f023c9af1a5599302334de6f4b8d17c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= <gruenich@dune-project.org>
Date: Fri, 31 Jan 2014 18:14:58 +0100
Subject: [PATCH] [CMake],[release] Fix bug with dependency version handling.

Dependencies in the dune.module without a required version failed.
---
 cmake/modules/DuneMacros.cmake | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cmake/modules/DuneMacros.cmake b/cmake/modules/DuneMacros.cmake
index 3b2a1e15d..0323da6de 100644
--- a/cmake/modules/DuneMacros.cmake
+++ b/cmake/modules/DuneMacros.cmake
@@ -104,7 +104,9 @@ macro(find_dune_package module)
     string(STRIP ${DUNE_FIND_VERSION_NUMBER} DUNE_FIND_VERSION_NUMBER)
     extract_major_minor_version("${DUNE_FIND_VERSION_NUMBER}" DUNE_FIND_VERSION)
     set(DUNE_FIND_VERSION_STRING "${DUNE_FIND_VERSION_MAJOR}.${DUNE_FIND_VERSION_MINOR}.${DUNE_FIND_VERSION_REVISION}")
-      endif(DUNE_FIND_VERSION MATCHES "(>=|=|<=).*")
+  else()
+    set(DUNE_FIND_VERSION_STRING "0.0.0")
+  endif(DUNE_FIND_VERSION MATCHES "(>=|=|<=).*")
   if(NOT ${module}_FOUND)
     if(NOT (${module}_DIR OR ${module}_ROOT OR
        "${CMAKE_PREFIX_PATH}" MATCHES ".*${module}.*"))
-- 
GitLab