googletest/googletest-fix-cmake-libdir-install.patch

27 lines
776 B
Diff
Raw Normal View History

Index: b/googlemock/CMakeLists.txt
===================================================================
--- a/googlemock/CMakeLists.txt
+++ b/googlemock/CMakeLists.txt
@@ -104,7 +104,7 @@ endif()
#
# Install rules
install(TARGETS gmock gmock_main
- DESTINATION lib)
+ DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(DIRECTORY ${gmock_SOURCE_DIR}/include/gmock
DESTINATION include)
Index: b/googletest/CMakeLists.txt
===================================================================
--- a/googletest/CMakeLists.txt
+++ b/googletest/CMakeLists.txt
@@ -103,7 +103,7 @@ endif()
#
# Install rules
install(TARGETS gtest gtest_main
- DESTINATION lib)
+ DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(DIRECTORY ${gtest_SOURCE_DIR}/include/gtest
DESTINATION include)