CMake: don't cmake in the source-directory (during development)

This commit is contained in:
Adriaan de Groot 2021-11-29 14:56:15 +01:00
parent 864dcdb2c2
commit ec1b73be2b

View File

@ -46,6 +46,9 @@ project( CALAMARES
)
set( CALAMARES_VERSION_RC 1 ) # Set to 0 during release cycle, 1 during development
if( CALAMARES_VERSION_RC EQUAL 1 AND CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR )
message( FATAL_ERROR "Do not build development versions in the source-directory." )
endif()
### OPTIONS
#