CMake: removing qpythia from the depedencies
[u/mrichter/AliRoot.git] / cmake / CMakeALICE.cmake
index c8f0e24..e9c90e1 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_LESS "2.8.12")
+            get_filename_component(_FILEPREFIX ${_FILE} PATH)
+        else()
+            get_filename_component(_FILEPREFIX ${_FILE} DIRECTORY)
+        endif()
         #message(STATUS "[install_relative] ${_FILE} --> ${_FILEPREFIX}")
 
         string(SUBSTRING ${_FILE} 0 1 _FILE_FIRST)