mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-14 18:06:27 +00:00
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:
parent
57555c6a0a
commit
9ed4b171e9
2
third-party/unittest/CMakeLists.txt
vendored
2
third-party/unittest/CMakeLists.txt
vendored
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user