From 927d5d7cc4d5ba6fbd383be01db8e9e4ff5f19e1 Mon Sep 17 00:00:00 2001
From: Markus Blatt <mblatt@dune-project.org>
Date: Wed, 20 Feb 2013 09:18:19 +0000
Subject: [PATCH] Renamed CMAKE_(SOURCE|BINARY)_DIR to
 PROJECT_(SOURCE|BINARY)_DIR to let people build dune modules as subproject of
 another project.

[[Imported from SVN: r1791]]
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0ca1d875..2e438b32 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 2.8.6)
 #find dune-common and set the module path
 find_package(dune-common)
 list(APPEND CMAKE_MODULE_PATH ${dune-common_MODULE_PATH}
-  "${CMAKE_SOURCE_DIR}/cmake/modules")
+  "${PROJECT_SOURCE_DIR}/cmake/modules")
 
 #include the dune macros
 include(DuneMacros)
-- 
GitLab