[llvm-commits] [llvm] r173617 - [CMake][Lit][unittests] Cleanup in AddLLVM.cmake.

NAKAMURA Takumi geek4civic at gmail.com
Sun Jan 27 04:46:53 PST 2013


Author: chapuni
Date: Sun Jan 27 06:46:53 2013
New Revision: 173617

URL: http://llvm.org/viewvc/llvm-project?rev=173617&view=rev
Log:
[CMake][Lit][unittests] Cleanup in AddLLVM.cmake.

Modified:
    llvm/trunk/cmake/modules/AddLLVM.cmake

Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=173617&r1=173616&r2=173617&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Sun Jan 27 06:46:53 2013
@@ -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()





More information about the llvm-commits mailing list