From eed0d341d285390eba42bc9c911ba98345f88099 Mon Sep 17 00:00:00 2001 From: click Date: Tue, 18 May 2010 04:28:13 +0200 Subject: [PATCH] Rewrite the warning (and thus add more hand-holding) regarding the "insourcetree build warning" when attempting a build directly in sourcetree. Adds additional information on how to actually "unlock" the sourcetree again after an attempt to build in the sourcetree has been made. --HG-- branch : trunk --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ad5a8384bfe..78834e3d485 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ include(cmake/PCH.cmake) # Force out-of-source build string(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" BUILDING_IN_SOURCE) if(BUILDING_IN_SOURCE) - message(FATAL_ERROR "This project requires an out of source build. Please create a separate build directory and run 'cmake path_to_project [options]' there.") + message(FATAL_ERROR "This project requires an out of source build. Remove the file 'CMakeCache.txt' found in this directory before continuing, and create a separate build directory and run 'cmake path_to_project [options]' from there.") endif(BUILDING_IN_SOURCE) # Select the Release build configuration by default.