Skip to content

Commit 4132bd8

Browse files
committed
Fix XPTI FW unit tests build after 9f37775 Prefix gtest and gtest_main with "llvm_"
1 parent 94f6f98 commit 4132bd8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

xptifw/unit_test/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ if (NOT DEFINED LLVM_EXTERNAL_XPTIFW_SOURCE_DIR)
2525
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
2626

2727
# Add googletest directly to our build. This defines
28-
# the gtest and gtest_main targets.
28+
# the llvm_gtest and llvm_gtest_main targets.
2929
add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/googletest-src
3030
${CMAKE_CURRENT_BINARY_DIR}/googletest-build
3131
EXCLUDE_FROM_ALL)
3232

33-
# The gtest/gtest_main targets carry header search path
34-
# dependencies automatically when using CMake 2.8.11 or
33+
# The llvm_gtest/llvm_gtest_main targets carry header search
34+
# path dependencies automatically when using CMake 2.8.11 or
3535
# later. Otherwise we have to add them here ourselves.
3636
if (CMAKE_VERSION VERSION_LESS 2.8.11)
3737
include_directories("${gtest_SOURCE_DIR}/include")
@@ -54,8 +54,8 @@ if (TARGET LLVMSupport)
5454
endif()
5555

5656
target_link_libraries(XPTIFWUnitTests PRIVATE
57-
gtest
58-
gtest_main
57+
llvm_gtest
58+
llvm_gtest_main
5959
xptifw
6060
${SUPPORT_LIB}
6161
)

0 commit comments

Comments
 (0)