From c42bdfcc05d6f8d5fd0fe9b7656427d218bfa8b6 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 27 Jan 2013 12:46:53 +0000 Subject: [PATCH] [CMake][Lit][unittests] Cleanup in AddLLVM.cmake. llvm-svn: 173617 --- llvm/cmake/modules/AddLLVM.cmake | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index e41b3e7..bc7d054 100755 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/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() -- 2.7.4