aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-27 12:46:53 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-27 12:46:53 +0000
commit2044adfb2ac7435ed3a1a66d48eb49887769745d (patch)
tree80b74801451e1ba5e9abb5c7c9f043bd500a0f1f /cmake
parent1917aaff29566f4c2fc9cd857e00bdededdff7ce (diff)
[CMake][Lit][unittests] Cleanup in AddLLVM.cmake.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/modules/AddLLVM.cmake9
1 files changed, 1 insertions, 8 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index e41b3e7f51..bc7d0544e9 100755
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -155,16 +155,9 @@ macro(add_llvm_external_project name)
endif()
endmacro(add_llvm_external_project)
-# Returns directory where unittest should reside.
-function(get_unittest_directory dir)
- set(result ${CMAKE_CURRENT_BINARY_DIR})
- set(${dir} ${result} PARENT_SCOPE)
-endfunction()
-
# Generic support for adding a unittest.
function(add_unittest test_suite test_name)
- get_unittest_directory(OUTPUT_DIR)
- set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIR})
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
if( NOT LLVM_BUILD_TESTS )
set(EXCLUDE_FROM_ALL ON)
endif()