Skip to content

Commit 9ed4b17

Browse files
authoredJul 2, 2024
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).
1 parent 57555c6 commit 9ed4b17

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎third-party/unittest/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ target_include_directories(llvm_gtest
8585
add_subdirectory(UnitTestMain)
8686

8787
if (LLVM_INSTALL_GTEST)
88-
install(TARGETS llvm_gtest llvm_gtest_main LLVMTestingSupport LLVMTestingAnnotations
89-
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT llvm_gtest)
9088
install(DIRECTORY googletest/include/gtest/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/llvm-gtest/gtest/" COMPONENT llvm_gtest)
9189
install(DIRECTORY googlemock/include/gmock/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/llvm-gmock/gmock/" COMPONENT llvm_gtest)
9290
endif()

0 commit comments

Comments
 (0)
Please sign in to comment.