In the CMake build on macOS, add an option to use @rpath in the shared library.

* CMakeLists.txt: Reorder build options before their use (style change only).
   Put platform-relative build options last.
  (RELATIVE_RPATH): New macOS-specific build option.
  (serf_shared): Only add the INSTALL_LIB_DIR property on macOS,
   depending on RELATIVE_RPATH.

* build/SerfPlatform.cmake (CMAKE_MACOSX_RPATH): Depends on RELATIVE_RPATH.


git-svn-id: https://svn.apache.org/repos/asf/serf/trunk@1842236 13f79535-47bb-0310-9956-ffa450edef68
2 files changed