use LLVM_INSTALL_DIR as the path to clang/llvm-as/llvm-link
authorGuo Yejun <yejun.guo@intel.com>
Thu, 12 Jun 2014 22:06:50 +0000 (06:06 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 13 Jun 2014 09:49:36 +0000 (17:49 +0800)
commit9d112b8b04426d9b9ab9fda867d49550f47dca1a
treea3dbccbaf5aeb36849e5a2a7de2f8792e69fc9cf
parentc9fd0b0cfa52254a459f602e00cafc628c19b7f0
use LLVM_INSTALL_DIR as the path to clang/llvm-as/llvm-link

I invented CMAKE_BINARY_PATH as the path to clang/llvm-as/llvm-link
in last patch, it is not elegant. Actually, LLVM_INSTALL_DIR is
already used in CMake file and is a better choice.

So, for cross compile case, cmake can find the binaries such as clang,
llvm-as, llvm-link and llvm-config with the help of LLVM_INSTALL_DIR.

Signed-off-by: Guo Yejun <yejun.guo@intel.com>
backend/src/CMakeLists.txt