• Mizux's avatar
    CMake OSX rpath management (#4620) · 7306f549
    Mizux authored
    * CMake: Add comment for CMP0048
    
    * CMake: osx use @rpath/ as target's install name (CMP0042)
    
    On MacoS library should use @rpath/ as prefix path instead of absolute build path
    e.g. otool -L libprotobuf.dylib
    libprotobuf.dylib:
      @rpath/libprotobuf.dylib (...)
      ...
    
    * CMake: add rpath to target for LINUX and APPLE
    7306f549
install.cmake 5.57 KB