aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2008-11-14 22:21:02 +0000
committerOscar Fuentes <ofv@wanadoo.es>2008-11-14 22:21:02 +0000
commit9cd56a094cff9d95d1f5b27838538926d09db6e9 (patch)
tree7f407a3b9b82d174ec929e3bd20d37011628f1f3 /cmake
parent64ed88c6aa3228d623e32347f46651078b00cf54 (diff)
downloadexternal_llvm-9cd56a094cff9d95d1f5b27838538926d09db6e9.zip
external_llvm-9cd56a094cff9d95d1f5b27838538926d09db6e9.tar.gz
external_llvm-9cd56a094cff9d95d1f5b27838538926d09db6e9.tar.bz2
CMake: Use LLVM_MAIN_SRC_DIR instead of CMAKE_SOURCE_DIR, for
consistency. Patch by Kevin Andre! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/TableGen.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake
index aed6558..7836c4e 100644
--- a/cmake/modules/TableGen.cmake
+++ b/cmake/modules/TableGen.cmake
@@ -5,7 +5,7 @@
macro(tablegen ofn)
file(GLOB all_tds "*.td")
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${ofn}
- COMMAND ${LLVM_TABLEGEN} ${ARGN} -I ${CMAKE_CURRENT_SOURCE_DIR} -I ${CMAKE_SOURCE_DIR}/lib/Target -I ${LLVM_MAIN_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${LLVM_TARGET_DEFINITIONS} -o ${ofn}
+ COMMAND ${LLVM_TABLEGEN} ${ARGN} -I ${CMAKE_CURRENT_SOURCE_DIR} -I ${LLVM_MAIN_SRC_DIR}/lib/Target -I ${LLVM_MAIN_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${LLVM_TARGET_DEFINITIONS} -o ${ofn}
DEPENDS tblgen ${all_tds}
COMMENT "Building ${ofn}..."
)