unittests: Use the correct defines and global variables when building on CMake.
llvm-svn: 116834
This commit is contained in:
parent
713460114d
commit
58efb6d19b
|
@ -13,6 +13,8 @@ function(add_llvm_unittest test_name)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include)
|
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
|
set(LLVM_LINK_COMPONENTS
|
||||||
jit
|
jit
|
||||||
|
|
Loading…
Reference in New Issue