unittests: Use the correct defines and global variables when building on CMake.

llvm-svn: 116834
This commit is contained in:
Michael J. Spencer 2010-10-19 18:04:19 +00:00
parent 713460114d
commit 58efb6d19b
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ function(add_llvm_unittest test_name)
endfunction()
include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include)
set(LLVM_REQUIRES_RTTI 1)
add_definitions(-DGTEST_HAS_RTTI=0)
set(LLVM_LINK_COMPONENTS
jit