python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / protobuf / static-executables-have-no-rpath.patch
blobcd2474e14590d6b45980cde1142dd365ed33e1f6
1 diff --git a/cmake/install.cmake b/cmake/install.cmake
2 index 26a55be8b..b6823c3f9 100644
3 --- a/cmake/install.cmake
4 +++ b/cmake/install.cmake
5 @@ -32,13 +32,6 @@ if (protobuf_BUILD_PROTOC_BINARIES)
6 install(TARGETS protoc EXPORT protobuf-targets
7 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc
8 BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc)
9 - if (UNIX AND NOT APPLE)
10 - set_property(TARGET protoc
11 - PROPERTY INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}")
12 - elseif (APPLE)
13 - set_property(TARGET protoc
14 - PROPERTY INSTALL_RPATH "@loader_path/../lib")
15 - endif()
16 endif (protobuf_BUILD_PROTOC_BINARIES)
18 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/protobuf.pc ${CMAKE_CURRENT_BINARY_DIR}/protobuf-lite.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")