Disallow building in source tree to keep it clean

This commit is contained in:
LordBlick 2015-09-20 19:58:57 +02:00
parent d159b8b961
commit 8278c1892e
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,9 @@
cmake_minimum_required( VERSION 2.8.4 FATAL_ERROR )
if ( ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR} )
message( FATAL_ERROR "In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there, points here. You may need to remove CMakeCache.txt." )
endif()
project( kicad-i18n NONE )
find_package( Gettext REQUIRED )