From: Daniel Dunbar Date: Tue, 22 Sep 2009 06:09:31 +0000 (+0000) Subject: Fix llvm-config --src-root and --obj-root for CMake builds. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bf6f0859b080e2a03e70a79e9cb1c99d3b764610;p=oota-llvm.git Fix llvm-config --src-root and --obj-root for CMake builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82529 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-config/CMakeLists.txt b/tools/llvm-config/CMakeLists.txt index 9181fe0847c..15df21f6204 100644 --- a/tools/llvm-config/CMakeLists.txt +++ b/tools/llvm-config/CMakeLists.txt @@ -8,6 +8,8 @@ endif( NOT PERL_FOUND ) set(PERL ${PERL_EXECUTABLE}) set(VERSION PACKAGE_VERSION) set(PREFIX ${LLVM_BINARY_DIR}) # TODO: Root for `make install'. +set(abs_top_srcdir ${LLVM_MAIN_SRC_DIR}) +set(abs_top_builddir ${LLVM_BINARY_DIR}) execute_process(COMMAND date OUTPUT_VARIABLE LLVM_CONFIGTIME OUTPUT_STRIP_TRAILING_WHITESPACE)