[CMake] s/LLVM_SOURCE_DIR/LLVM_MAIN_SRC_DIR/
[oota-llvm.git] / cmake / modules / AddLLVM.cmake
index fcf023becf50f34edb46e0121a86fbcbeec9285a..924d672a22e0b4304c8c46fd4db314541a1926c2 100644 (file)
@@ -593,7 +593,7 @@ macro(add_llvm_executable name)
   if(XCODE)
     # Note: the dummy.cpp source file provides no definitions. However,
     # it forces Xcode to properly link the static library.
-    list(APPEND ALL_FILES "${LLVM_SOURCE_DIR}/cmake/dummy.cpp")
+    list(APPEND ALL_FILES "${LLVM_MAIN_SRC_DIR}/cmake/dummy.cpp")
   endif()
 
   if( EXCLUDE_FROM_ALL )