]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
CMake: fixed compat problem with CMake v2.8.11
authordberzano <dario.berzano@cern.ch>
Mon, 2 Feb 2015 17:34:36 +0000 (18:34 +0100)
committerdberzano <dario.berzano@cern.ch>
Mon, 2 Feb 2015 17:34:52 +0000 (18:34 +0100)
CMakeLists.txt
cmake/CMakeALICE.cmake

index 91d2c9bfc8d2502581e66d2b51eb8b4bf74c81d4..fcc380cb8165ccb992e3692c0375d4d2a584cafb 100644 (file)
@@ -118,7 +118,7 @@ set(ALIROOT_STATIC CACHE STRING "ENABLE static building of AliRoot: ON")
 if(DA)
     if(NOT DIMDIR AND NOT ODIR)
         set(DA FALSE)
-        message(FATAL_ERROR "Das enabled but no DIMDIR and ODIR set. Please set DIMDIR to DIM installation and ODIR to platform (default linux)")
+        message(FATAL_ERROR "DAs enabled but no DIMDIR and ODIR set. Please set DIMDIR to DIM installation and ODIR to platform (default linux)")
     endif()
 
     if(NOT DATE_FOUND)
index c8f0e24a08b8e28c089f42f3c3e03fafa9513e7f..8bc298e9631fe14956859c09a46d77a230285dc7 100644 (file)
@@ -311,7 +311,11 @@ function(install_relative)
     # Prepare a distinct install command for each file, depending on its path
     foreach(_FILE ${_FILES})
 
-        get_filename_component(_FILEPREFIX ${_FILE} DIRECTORY)
+        if(CMAKE_VERSION VERSION_GREATER "2.8.11")
+            get_filename_component(_FILEPREFIX ${_FILE} DIRECTORY)
+        else()
+            get_filename_component(_FILEPREFIX ${_FILE} PATH)
+        endif()
         #message(STATUS "[install_relative] ${_FILE} --> ${_FILEPREFIX}")
 
         string(SUBSTRING ${_FILE} 0 1 _FILE_FIRST)