mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 08:59:28 +02:00
Detect in-source builds better
This commit is contained in:
parent
4cfbf07227
commit
cda8f2fcd6
@ -5,7 +5,7 @@ cmake_minimum_required( VERSION 3.14 )
|
|||||||
# Don't allow in-source builds...no real reason, just
|
# Don't allow in-source builds...no real reason, just
|
||||||
# keeping those source trees nice and tidy. :-)
|
# keeping those source trees nice and tidy. :-)
|
||||||
# (This can be removed if it becomes an issue.)
|
# (This can be removed if it becomes an issue.)
|
||||||
if( EXISTS "lib-src" )
|
if( "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}" )
|
||||||
message( FATAL_ERROR
|
message( FATAL_ERROR
|
||||||
"In-source builds not allowed.\n"
|
"In-source builds not allowed.\n"
|
||||||
"Create a new directory and run cmake from there, i.e.:\n"
|
"Create a new directory and run cmake from there, i.e.:\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user