lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
944 stars 385 forks source link

Set CMAKE_MACOSX_RPATH on macOS to satisfy policy CMP0042 #415

Closed nosracd closed 1 year ago

nosracd commented 1 year ago

Fixes the warning:

CMake Warning (dev):
-- Generating done
  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:

   lcm-test-types-c

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