aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2017-09-29 19:50:41 +0000
committerBrian Gesiak <modocache@gmail.com>2017-09-29 19:50:41 +0000
commit35bfb7ddfe68956c3f8d9b70059aef30769ffb1c (patch)
tree583060e610d99e89c1917610c1627b81518050a9 /cmake/modules
parent73692018517748f4f3fbd64aabe60d2231a65d8d (diff)
downloadllvm-35bfb7ddfe68956c3f8d9b70059aef30769ffb1c.tar.gz
Revert "[CMake] Remove `CMAKE_.*_OUTPUT_DIRECTORY` (NFCI)"
Summary: It appears polly makes use of the `CMAKE_RUNTIME_OUTPUT_DIRECTORY` variable when configuring its lit test suite. Reverting this for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/AddLLVM.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 64ef479f30b..81e7211ef97 100644
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -214,6 +214,8 @@ function(add_link_opts target_name)
endfunction(add_link_opts)
# Set each output directory according to ${CMAKE_CONFIGURATION_TYPES}.
+# Note: Don't set variables CMAKE_*_OUTPUT_DIRECTORY any more,
+# or a certain builder, for eaxample, msbuild.exe, would be confused.
function(set_output_directory target)
cmake_parse_arguments(ARG "" "BINARY_DIR;LIBRARY_DIR" "" ${ARGN})