1 #-----------------------------------------------------------------------------
2 # Building in the source tree is forbidden !
3 IF(PROJECT_BINARY_DIR STREQUAL ${PROJECT_SOURCE_DIR})
4 MESSAGE(FATAL_ERROR "Building in the source tree is not allowed !! Quit; remove the file 'CMakeCache.txt' and the folder 'CMakeFiles' and build outside the sources")
5 ENDIF(PROJECT_BINARY_DIR STREQUAL ${PROJECT_SOURCE_DIR})
6 #-----------------------------------------------------------------------------