Skip to content

Commit

Permalink
more robust DYLD_LIBRARY_PATH injection
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Mar 4, 2021
1 parent 725d9d4 commit d879ac2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions recipes/protobuf/all/conanfile.py
Expand Up @@ -120,8 +120,7 @@ def _patch_sources(self):
tools.replace_in_file(
protobuf_config_cmake,
"COMMAND protobuf::protoc",
("COMMAND export DYLD_LIBRARY_PATH=${CUSTOM_DYLD_LIBRARY_PATH}\n"
"COMMAND protobuf::protoc")
"COMMAND ${CMAKE_COMMAND} -E env \"DYLD_LIBRARY_PATH=${CUSTOM_DYLD_LIBRARY_PATH}\" ${PROTOC_FULL_PATH}"
)

# Disable a potential warning in protobuf-module.cmake.in
Expand Down

0 comments on commit d879ac2

Please sign in to comment.