COMP: Prevent insource builds and inbuild installs
authorHans Johnson <hans-johnson@uiowa.edu>
Wed, 27 Jul 2016 12:53:36 +0000 (07:53 -0500)
committerHans Johnson <hans-johnson@uiowa.edu>
Thu, 28 Jul 2016 13:56:44 +0000 (08:56 -0500)
commitea081254b4a0538f81c74bdb8338b29a068303aa
treeef6fcc472e88667f9c84e8595dbd0ffa7b680554
parent44ef9da070628a2ff7bf63afca60d0ebe0ed7875
COMP: Prevent insource builds and inbuild installs

With cmake is best to require out-of-source builds,
and to avoid intalling into the same directory as the
build was performed.

Both of these situations can cause very confusing situations
that can frustrate new users of the software package, so
check for and provide guidance to the end-users.

These files were initially contributed to the ITK
(www.itk.org) project and have been widely re-used
by many other projects.

NOTE: This patch is dependant on pull request #16
CMAKE/PreventInBuildInstalls.cmake [new file with mode: 0644]
CMAKE/PreventInSourceBuilds.cmake [new file with mode: 0644]
CMakeLists.txt