Permalink
Browse files

COMP: Avoid interpretation error within error message displayed in Pr…

…eventInSourceBuilds

* Use consistently "-sandbox", before -Sandbox" was also used.

* Also generalize PreventInSourceBuilds.cmake macro for possible contribution to CMake.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19730 3bd1e089-480b-0410-8dfb-8563597acbee
  • Loading branch information...
1 parent 4538941 commit 8411cf202a6be2c2b072a6dbb74894abc3836299 @jcfr jcfr committed Mar 29, 2012
Showing with 10 additions and 10 deletions.
  1. +10 −10 CMake/PreventInSourceBuilds.cmake
@@ -9,31 +9,31 @@ function(AssureOutOfSourceBuilds)
# disallow in-source builds
if("${srcdir}" STREQUAL "${bindir}")
message("######################################################")
- message("# Slicer should not be configured & built in the Slicer source directory")
+ message("# ${PROJECT_NAME} should not be configured & built in the ${PROJECT_NAME} source directory")
message("# You must run cmake in a build directory.")
message("# For example:")
- message("# mkdir Slicer-Sandbox ; cd Slicer-sandbox")
- message("# svn co http://svn.slicer.org/Slicer4/trunk Slicer4 # or download & unpack the source tarball")
- message("# mkdir Slicer-build")
+ message("# mkdir ${PROJECT_NAME}-sandbox ; cd ${PROJECT_NAME}-sandbox")
+ message("# git clone git://github.com/${PROJECT_NAME}/${PROJECT_NAME}.git # or download & unpack the source tarball")
+ message("# mkdir ${PROJECT_NAME}-build")
message("# this will create the following directory structure")
message("#")
- message("# Slicer-Sandbox")
- message("# +--Slicer")
- message("# +--Slicer-SuperBuild")
+ message("# ${PROJECT_NAME}-sandbox")
+ message("# +--${PROJECT_NAME}")
+ message("# +--${PROJECT_NAME}-SuperBuild")
message("#")
message("# Then you can proceed to configure and build")
message("# by using the following commands")
message("#")
- message("# cd Slicer-build")
- message("# cmake ../Slicer # or ccmake, or cmake-gui ")
+ message("# cd ${PROJECT_NAME}-build")
+ message("# cmake ../${PROJECT_NAME} # or ccmake, or cmake-gui ")
message("# make")
message("#")
message("# NOTE: Given that you already tried to make an in-source build")
message("# CMake have already created several files & directories")
message("# in your source tree. run 'git status' to find them and")
message("# remove them by doing:")
message("#")
- message("# cd Slicer-Sandbox/Slicer")
+ message("# cd ${PROJECT_NAME}-sandbox/${PROJECT_NAME}")
message("# git clean -n -d")
message("# git clean -f -d")
message("# git checkout --")

0 comments on commit 8411cf2

Please sign in to comment.