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.
This commit is contained in:
parent
4713f0be42
commit
ed9155bfd8
@ -56,7 +56,7 @@ endif()
|
|||||||
|
|
||||||
project(CALAMARES VERSION ${CALAMARES_VERSION} LANGUAGES C CXX HOMEPAGE_URL "https://calamares.io/")
|
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.")
|
message(FATAL_ERROR "Do not build development versions in the source-directory.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user