ALICE_INSTALL should not point to build dir
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Feb 2011 21:12:04 +0000 (21:12 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Feb 2011 21:12:04 +0000 (21:12 +0000)
CMakeLists.txt

index f985f4f..242d9fd 100644 (file)
@@ -18,6 +18,9 @@ project(AliRoot CXX C Fortran)
 set(ALICE_ROOT $ENV{ALICE_ROOT})
 set(ALICE $ENV{ALICE})
 set(ALICE_INSTALL $ENV{ALICE_INSTALL})
+if(${ALICE_INSTALL} MATCHES ${CMAKE_BINARY_DIR})
+  message(FATAL_ERROR "Install dir should be different from build dir")
+endif(${ALICE_INSTALL} MATCHES ${CMAKE_BINARY_DIR})
 # Environment for SHUTTLE
 set(DIMDIR $ENV{DIMDIR})
 set(ODIR $ENV{ODIR})