Disallow building in source tree to keep it clean
This commit is contained in:
parent
d159b8b961
commit
8278c1892e
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue