提交 7bd18950 编写于 作者: D Dmitry Kozlov

cmake: check for build directory is separated directory from sources

上级 74c00bfc
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册