]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STARLIGHT/starlight/cmake_modules/CommonMacros.cmake
Switching from CMAKE_SOURCE_DIR to AliRoot_SOURCE_DIR
[u/mrichter/AliRoot.git] / STARLIGHT / starlight / cmake_modules / CommonMacros.cmake
index 0ee1530f24f7f7b9a039493a3901f2607082d4f9..7d938e3f38598256b9189879c3b5cc1415d58045 100644 (file)
@@ -67,7 +67,7 @@ endfunction(make_executable)
 
 
 macro(enforce_out_of_source_build)
-  if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
+  if(${AliRoot_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
     message(FATAL_ERROR "Building this project in the source directory is not allowed. Please remove CMakeCache.txt, create a build directory, and run cmake there, for example:
 rm CMakeCache.txt
 mkdir build && cd build