llvm_gtest: Only install once (#96959)

llvm_gtest and its dependencies were being installed twice (and into two
different locations depending on the cmake options).
This commit is contained in:
Tom Stellard 2024-07-02 15:12:15 -07:00 committed by GitHub
parent 57555c6a0a
commit 9ed4b171e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,8 +85,6 @@ target_include_directories(llvm_gtest
add_subdirectory(UnitTestMain)
if (LLVM_INSTALL_GTEST)
install(TARGETS llvm_gtest llvm_gtest_main LLVMTestingSupport LLVMTestingAnnotations
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT llvm_gtest)
install(DIRECTORY googletest/include/gtest/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/llvm-gtest/gtest/" COMPONENT llvm_gtest)
install(DIRECTORY googlemock/include/gmock/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/llvm-gmock/gmock/" COMPONENT llvm_gtest)
endif()