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 da05a8149b
commit fcc19613cd

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