From c6efaae36a297eb53036f0173daa51ce5a833665 Mon Sep 17 00:00:00 2001 From: hobbes1069 Date: Fri, 6 Dec 2013 20:43:02 +0000 Subject: [PATCH] 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 --- fdmdv2/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.25.1