From 2cf8309c7b46f1ac8ae1e3554dc0d7d57498b6a5 Mon Sep 17 00:00:00 2001
From: Markus Blatt <markus@dr-blatt.de>
Date: Thu, 21 Nov 2013 14:57:39 +0100
Subject: [PATCH] [release] Fixes setting of module path for installed package.

Previously the module path was a relative to the install
directory. With this patch the CMake package configuration file contains the
full path and the macros are found.
---
 cmake/pkg/dune-istl-config.cmake.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/pkg/dune-istl-config.cmake.in b/cmake/pkg/dune-istl-config.cmake.in
index 1805f3e1..43ed3a93 100644
--- a/cmake/pkg/dune-istl-config.cmake.in
+++ b/cmake/pkg/dune-istl-config.cmake.in
@@ -16,5 +16,5 @@ set(@DUNE_MOD_NAME@_CXX_FLAGS_RELEASE "@CMAKE_CXX_FLAGS_RELEASE@")
 set(@DUNE_MOD_NAME@_CXX_FLAGS_RELWITHDEBINFO "@CMAKE_CXX_FLAGS_RELWITHDEBINFO@")
 set(@DUNE_MOD_NAME@_DEPENDS "@DUNE_DEPENDS@")
 set(@DUNE_MOD_NAME@_SUGGESTS "@DUNE_SUGGESTS@")
-set(@DUNE_MOD_NAME@_MODULE_PATH "@DUNE_INSTALL_MODULEDIR@")
+set(@DUNE_MOD_NAME@_MODULE_PATH "${_prefix}/@DUNE_INSTALL_MODULEDIR@")
 endif(NOT @DUNE_MOD_NAME@_FOUND)
\ No newline at end of file
-- 
GitLab