From: hobbes1069 Date: Fri, 6 Dec 2013 20:43:02 +0000 (+0000) Subject: Make in-source build error message more human readable. X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=c6efaae36a297eb53036f0173daa51ce5a833665;p=freetel-svn-tracking.git Make in-source build error message more human readable. git-svn-id: https://svn.code.sf.net/p/freetel/code@1331 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/fdmdv2/CMakeLists.txt b/fdmdv2/CMakeLists.txt index 81180a8f..f879470e 100644 --- a/fdmdv2/CMakeLists.txt +++ b/fdmdv2/CMakeLists.txt @@ -13,6 +13,9 @@ cmake_minimum_required(VERSION 2.8) # files manually. set(CMAKE_DISABLE_SOURCE_CHANGES ON) set(CMAKE_DISABLE_IN_SOURCE_BUILD ON) +if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}") + message(FATAL_ERROR "In-source builds are not allowed.") +endif("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}") project(FreeDV)