[CMake] cmake_check_build_system
William A. Hoffman
billlist at nycap.rr.com
Thu Jul 13 13:06:45 EDT 2006
At 12:59 PM 7/13/2006, Scott Amort wrote:
>William A. Hoffman wrote:
>> Why not use a forced out of source build?
>
>Sorry to hijack this thread, but how do you 'force' an out of source build?
Something like this:
#########################################################################
# Disallow in-source build
STRING(COMPARE EQUAL "${ParaView_SOURCE_DIR}"
"${ParaView_BINARY_DIR}" INSOURCE)
IF(INSOURCE)
MESSAGE(FATAL_ERROR "ParaView requires an out of source Build. Please create a separate binary directory and run CMake there.")
ENDIF(INSOURCE)
-Bill
More information about the CMake
mailing list