[kde-common/cmake] enforce out-of-source mode

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common@1225926 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
master
samelian 14 years ago
parent 229d15f085
commit a8e9c1fde7

@ -1116,3 +1116,14 @@ macro( tde_setup_install_path _path _default )
set( ${_path} "${_default}" )
endif( )
endmacro( )
##################################################
if( ${CMAKE_SOURCE_DIR} MATCHES ${CMAKE_BINARY_DIR} )
tde_message_fatal( "Please use out-of-source building, like this:
\n rm ${CMAKE_SOURCE_DIR}/CMakeCache.txt
mkdir /tmp/${PROJECT_NAME}.build
cd /tmp/${PROJECT_NAME}.build
cmake ${CMAKE_SOURCE_DIR} [arguments...]" )
endif( )

Loading…
Cancel
Save