summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9ea7f4f0..53cdc393 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 2.6)
cmake_policy(SET CMP0005 NEW)
cmake_policy(SET CMP0003 OLD)
+if (CMAKE_BINARY_DIR STREQUAL CMAKE_HOME_DIRECTORY)
+ message(FATAL_ERROR "Building in source directory is forbidden. Please make separated build directory.")
+endif ()
+
project(accel-ppp C)
include(cmake/cpack.cmake)