diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3ef5ee7f7b1ce9e4233871f315fad0fbe8f905cd..1b7cb29caa5e09336cdaea4db7aa952132bbc5b8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,10 +5,10 @@ project("dune-common" C CXX)
 cmake_minimum_required(VERSION 2.8.6)
 message("CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}|")
 # make sure our own modules are found
-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules")
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/modules")
 message("CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}")
 # set the script dir for the macros.
-set(DUNE_COMMON_SCRIPT_DIR "${CMAKE_SOURCE_DIR}/cmake/scripts")
+set(DUNE_COMMON_SCRIPT_DIR "${PROJECT_SOURCE_DIR}/cmake/scripts")
 
 #include the dune macros
 include(DuneMacros)