[llvm] llvm_gtest: Only install once (PR #96959)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 13:04:27 PDT 2024
https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/96959
llvm_gtest and its dependencies were being installed twice (and into two different locations depending on the cmake options).
>From bb0bd46a68ffde0be42e15637c266ca1718ddfcc Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Thu, 27 Jun 2024 19:27:19 +0000
Subject: [PATCH] llvm_gtest: Only install once
llvm_gtest and its dependencies were being installed twice (and
into two different locations depending on the cmake options).
---
third-party/unittest/CMakeLists.txt | 2 --
1 file changed, 2 deletions(-)
diff --git a/third-party/unittest/CMakeLists.txt b/third-party/unittest/CMakeLists.txt
index bf6ef54555144..8b38791629a4e 100644
--- a/third-party/unittest/CMakeLists.txt
+++ b/third-party/unittest/CMakeLists.txt
@@ -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()
More information about the llvm-commits
mailing list