summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-01-28 07:16:22 +0000
committerAlexey Samsonov <samsonov@google.com>2013-01-28 07:16:22 +0000
commitf6acafcaf557fa8f89794ac08597a854475dfc73 (patch)
tree04c1468a84909c9b806ae4d48e530dc3837fba96 /cmake
parent1db6274ece7105cb6048783c12b74d26301089c1 (diff)
downloadcompiler-rt-f6acafcaf557fa8f89794ac08597a854475dfc73.tar.gz
compiler-rt-f6acafcaf557fa8f89794ac08597a854475dfc73.tar.bz2
compiler-rt-f6acafcaf557fa8f89794ac08597a854475dfc73.tar.xz
[CMake] Fix compiler-rt tests after r173617
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/AddCompilerRT.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake
index dbc38c55..d084bf04 100644
--- a/cmake/Modules/AddCompilerRT.cmake
+++ b/cmake/Modules/AddCompilerRT.cmake
@@ -113,9 +113,7 @@ set(COMPILER_RT_GTEST_INCLUDE_CFLAGS
# LINK_FLAGS <link flags>)
macro(add_compiler_rt_test test_suite test_name)
parse_arguments(TEST "OBJECTS;DEPS;LINK_FLAGS" "" ${ARGN})
- set(OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
- file(MAKE_DIRECTORY ${OUTPUT_DIR})
- set(output_bin "${OUTPUT_DIR}/${test_name}")
+ set(output_bin "${CMAKE_CURRENT_BINARY_DIR}/${test_name}")
add_custom_command(
OUTPUT ${output_bin}
COMMAND clang ${TEST_OBJECTS} -o "${output_bin}"