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
This commit is contained in:
click
2010-05-18 04:28:13 +02:00
parent b5342fe754
commit eed0d341d2

View File

@@ -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.