summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/modules/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b621ec0..50edfaf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,7 +11,7 @@ find_package(OpenSSL REQUIRED)
find_package(Boost REQUIRED regex signals system thread)
find_package(MySQL)
-configure_file(config.h.in ${MAD_BINARY_DIR}/config.h)
+configure_file(${MAD_SOURCE_DIR}/config.h.in ${MAD_BINARY_DIR}/config.h)
set(INCLUDES
${MAD_SOURCE_DIR}/src
diff --git a/src/modules/CMakeLists.txt b/src/modules/CMakeLists.txt
index 4c86688..fb9aac0 100644
--- a/src/modules/CMakeLists.txt
+++ b/src/modules/CMakeLists.txt
@@ -47,7 +47,7 @@ foreach(module ${STATIC_MODULES})
SET(STATIC_MODULE_LIST "${STATIC_MODULE_LIST}std::make_pair(\"${module}\", &${module}_create),\n")
endforeach(module ${STATIC_MODULES})
-configure_file(modules.cpp.in ${MAD_BINARY_DIR}/src/modules/modules.cpp)
+configure_file(${MAD_SOURCE_DIR}/src/modules/modules.cpp.in ${MAD_BINARY_DIR}/src/modules/modules.cpp)
add_library(modules STATIC
modules.cpp modules.h