diff --git a/conan/tools/apple/apple.py b/conan/tools/apple/apple.py index f08f325d5a0..33f9e02bbc7 100644 --- a/conan/tools/apple/apple.py +++ b/conan/tools/apple/apple.py @@ -258,7 +258,7 @@ def _fix_executables(conanfile, substitutions): command = f"install_name_tool {executable} -add_rpath {entry}" conanfile.run(command) - if is_apple_os(conanfile) and conanfile.options.get_safe("shared", False): + if is_apple_os(conanfile): substitutions = _fix_dylib_files(conanfile) # Only "fix" executables if dylib files were patched, otherwise