aboutsummaryrefslogtreecommitdiff
path: root/third-party
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-08-28 10:56:55 +0200
committerNikita Popov <npopov@redhat.com>2023-08-28 10:58:19 +0200
commit7ffc50708a80fdb1a2d913394b9de3892766c380 (patch)
treea63775be61a6e18d54545dd4ce1c328f3769a338 /third-party
parentb454ecc84f988f4e59288d1d606605c8fd261686 (diff)
downloadllvm-7ffc50708a80fdb1a2d913394b9de3892766c380.zip
llvm-7ffc50708a80fdb1a2d913394b9de3892766c380.tar.gz
llvm-7ffc50708a80fdb1a2d913394b9de3892766c380.tar.bz2
[cmake] Drop redundant libdir suffix during gtest installation
D158607 switched this code to use CMAKE_INSTALL_LIBDIR, but kept the explicit LLVM_DIR_SUFFIX. However, CMAKE_INSTALL_LIBDIR already contains the suffix, so we end up installing into a path like lib6464.
Diffstat (limited to 'third-party')
-rw-r--r--third-party/unittest/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/third-party/unittest/CMakeLists.txt b/third-party/unittest/CMakeLists.txt
index 7cc8f68..bf6ef54 100644
--- a/third-party/unittest/CMakeLists.txt
+++ b/third-party/unittest/CMakeLists.txt
@@ -86,7 +86,7 @@ add_subdirectory(UnitTestMain)
if (LLVM_INSTALL_GTEST)
install(TARGETS llvm_gtest llvm_gtest_main LLVMTestingSupport LLVMTestingAnnotations
- ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}${LLVM_LIBDIR_SUFFIX}" COMPONENT llvm_gtest)
+ 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()