mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
[CMake][Lit][unittests] Cleanup in AddLLVM.cmake.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173617 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -155,16 +155,9 @@ macro(add_llvm_external_project name)
|
|||||||
endif()
|
endif()
|
||||||
endmacro(add_llvm_external_project)
|
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.
|
# Generic support for adding a unittest.
|
||||||
function(add_unittest test_suite test_name)
|
function(add_unittest test_suite test_name)
|
||||||
get_unittest_directory(OUTPUT_DIR)
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIR})
|
|
||||||
if( NOT LLVM_BUILD_TESTS )
|
if( NOT LLVM_BUILD_TESTS )
|
||||||
set(EXCLUDE_FROM_ALL ON)
|
set(EXCLUDE_FROM_ALL ON)
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user