From ed9155bfd8e94e5e0cd2b458b81377e601ba6c71 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 4 May 2022 12:01:36 +0200 Subject: [PATCH] CMake: fix reversed logic RC (in the 3.2 branch) and RELEASE_MODE are inverted, logically, but the change to the CMake check wasn't properly inverted. This only matters if you try to build Calamares in the src-dir, which is something I never do anyway. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e52c3fa1..e4953b564 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,7 @@ endif() project(CALAMARES VERSION ${CALAMARES_VERSION} LANGUAGES C CXX HOMEPAGE_URL "https://calamares.io/") -if(CALAMARES_RELEASE_MODE AND CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) +if(NOT CALAMARES_RELEASE_MODE AND CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) message(FATAL_ERROR "Do not build development versions in the source-directory.") endif()