From 956a94800faff8df75131f43919c189be2b62d3c Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Tue, 1 Jun 2021 13:32:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BF=D1=80=D0=B5=D1=82=20=D1=83?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BA=D0=B8=20=D0=B2=20?= =?UTF-8?q?=D0=BA=D0=B0=D1=82=D0=B0=D0=BB=D0=BE=D0=B3=20=D1=81=20=D0=B8?= =?UTF-8?q?=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=B8=D0=BA=D0=B0=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibCommon.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMLibCommon.cmake b/CMLibCommon.cmake index 70e78f4..1851fd0 100644 --- a/CMLibCommon.cmake +++ b/CMLibCommon.cmake @@ -5,6 +5,10 @@ if(CMAKE_INSTALL_PREFIX STREQUAL PROJECT_BINARY_DIR) message(FATAL_ERROR "Cannot install into build directory") endif() +if(CMAKE_INSTALL_PREFIX STREQUAL PROJECT_SOURCE_DIR) + message(FATAL_ERROR "Cannot install into source directory") +endif() + include(CMLibDisableInSourceBuild) include(CMakeParseArguments) include(GNUInstallDirs)