Fix for bug #78521: Cmake - recompiling AliRoot when switching to a new ROOT tag
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Feb 2011 10:00:39 +0000 (10:00 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Feb 2011 10:00:39 +0000 (10:00 +0000)
cmake/FindROOT.cmake

index 3c73c4b..9e9e666 100644 (file)
@@ -5,7 +5,7 @@
 
 cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
 
-set(ROOTSYS $ENV{ROOTSYS})
+set(ROOTSYS $ENV{ROOTSYS} CACHE STRING "" FORCE)
 if(NOT ROOTSYS)
   message(FATAL_ERROR "Environment variable $ROOTSYS is not set !")
 else()