summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Guilloux <glx22@users.noreply.github.com>2021-04-06 13:54:27 +0200
committerGitHub <noreply@github.com>2021-04-06 13:54:27 +0200
commit39b4a8e67e5804265340a9c2ffd85afe8c7114eb (patch)
treedcde909067a432246ece35dd6c27d3df5285712f
parentca783d447a831088e21c13919e4865353e98d54d (diff)
downloadopenttd-39b4a8e67e5804265340a9c2ffd85afe8c7114eb.tar.xz
Change: [CMake] Improve 'In-source build' error message (#8955)
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 17ed2df8c..63a0ce2fe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,7 +7,7 @@ endif()
project(${BINARY_NAME})
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()
# Debug mode by default.