[CMake] Make the bindir and libdir arguments to set_output_directory optional
authorJohn Brawn <john.brawn@arm.com>
Wed, 30 Sep 2015 15:20:51 +0000 (15:20 +0000)
committerJohn Brawn <john.brawn@arm.com>
Wed, 30 Sep 2015 15:20:51 +0000 (15:20 +0000)
commit1cbae49b80c3ddacd69305ea52b45e7d702e907d
treeec519cc6a9c779eb8f89770df4ecced09f487dee
parent9260ee0d8842cbb642c762b38ac83ec6adcc2be0
[CMake] Make the bindir and libdir arguments to set_output_directory optional

When building a plugin against an installed LLVM toolchain using
add_llvm_loadable_module (in the documented manner) doesn't work as nothing sets
the *_OUTPUT_INTDIR variables causing an error when set_output_directory is
called. Making those arguments optional (causing the default output directory
to be used) fixes this.

Differential Revision: http://reviews.llvm.org/D13215

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248911 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake