Skip to content

Commit

Permalink
Fix references to gtest and gmock after llvm update
Browse files Browse the repository at this point in the history
gtest and gmock have been renamed llvm_gtest and llvm_gmock in the internal llvm
version, to avoid clashes with third-party installs.

Update the cache_creator to take this into account.
  • Loading branch information
dstutt authored and JaxLinAMD committed Mar 17, 2022
1 parent 13e732d commit 6d693c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/cache_creator/unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ find_package(Python3 ${LLVM_MINIMUM_PYTHON_VERSION} REQUIRED
# Find the TestingSupport library name that we will link with.
llvm_map_components_to_libnames(llvm_testing_support_lib TestingSupport)

set(LLVM_GTEST_LIBS gtest gtest_main ${llvm_testing_support_lib})
# Use the gtest support provided by llvm
set(LLVM_GTEST_LIBS llvm_gtest llvm_gtest_main ${llvm_testing_support_lib})
if(LLVM_PTHREAD_LIB)
list(APPEND LLVM_GTEST_LIBS pthread)
endif()
Expand Down

0 comments on commit 6d693c7

Please sign in to comment.