Skip to content

MACOSX_RPATH not specified in build #534

Closed
@kavika13

Description

@kavika13

When using cmake to generate a makefile on OSX, I get this warning:

CMake Warning (dev):
  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
  --help-policy CMP0042" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  MACOSX_RPATH is not specified for the following targets:

   jsoncpp_lib

This warning is for project developers.  Use -Wno-dev to suppress it.

The warning isn't the problem, though.

I'd like to have the rpath set on the dynamic libraries, because I am not planning to install the library system wide, and plan to place it in my app bundle. I can easily work around it by using install_name_tool in my build scripts to hack the library, however the build should probably just set this up to start with.

Let me know if that use case needs more explanation, or if you think that is a bad way to use the library. I can also probably fix it and submit a patch, but I want to be sure this wasn't intentional before I do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions