Skip to content

Commit

Permalink
llvm_gtest: Only install once (llvm#96959)
Browse files Browse the repository at this point in the history
llvm_gtest and its dependencies were being installed twice (and into two
different locations depending on the cmake options).
  • Loading branch information
tstellar authored and kbluck committed Jul 6, 2024
1 parent b3378a3 commit ae3e3e6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions third-party/unittest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ae3e3e6

Please sign in to comment.