cmake: Using PROJECT_SOURCE_DIR instead of AliRoot_SOURCE_DIR
authoragrigora <alina.grigoras@cern.ch>
Tue, 20 Jan 2015 13:42:25 +0000 (14:42 +0100)
committeragrigora <alina.grigoras@cern.ch>
Tue, 20 Jan 2015 13:42:25 +0000 (14:42 +0100)
The 2 variables are equivalent but AliRoot_SOURCE_DIR is not portable

cmake/GetGitRevisionDescription.cmake

index 4787d59..e72d2cb 100644 (file)
@@ -110,7 +110,7 @@ function(git_describe _var)
                ${hash}
                ${ARGN}
                WORKING_DIRECTORY
-               "${AliRoot_SOURCE_DIR}"
+               "${PROJECT_SOURCE_DIR}"
                RESULT_VARIABLE
                res
                OUTPUT_VARIABLE