AVRO-929. C: Set install_name in shared library on Mac OS X CMake will automatically call the install_name_tool program for us if we set the CMAKE_INSTALL_NAME_DIR variable. We now automatically set this variable if we're running on Mac OS X, and it's not set already. Its default value is "${CMAKE_INSTALL_PREFIX}/lib".