mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 09:29:10 +00:00
Change: [CMake] Improve 'In-source build' error message (#8955)
This commit is contained in:
committed by
Charles Pigott
parent
24ddedad38
commit
19b3f777c4
@@ -7,7 +7,7 @@ endif()
|
|||||||
project(${BINARY_NAME})
|
project(${BINARY_NAME})
|
||||||
|
|
||||||
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
|
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
|
||||||
message(FATAL_ERROR "In-source builds not allowed. Please run \"cmake ..\" from the bin directory")
|
message(FATAL_ERROR "In-source builds not allowed. Please run \"cmake ..\" from the build directory. You may need to delete \"${CMAKE_SOURCE_DIR}/CMakeCache.txt\" first.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Debug mode by default.
|
# Debug mode by default.
|
||||||
|
Reference in New Issue
Block a user