Skip to content

CMake warning when EXTERNAL_PROPRIETARY flag is used #3544

@dboltovskyi

Description

@dboltovskyi

Bug Report

CMake warning is shown during SDL build when EXTERNAL_PROPRIETARY flag is used

Reproduction Steps
  1. Build SDL in EXTERNAL_PROPRIETARY policy mode:
cmake ../sdl_core -DEXTENDED_POLICY=EXTERNAL_PROPRIETARY
Expected Behavior

No warning messages are displayed.

Observed Behavior

Warning message is shown:

CMake Warning (dev) at CMakeLists.txt:436 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "copy_policy_library" of target "smartDeviceLinkCore"
  does not exist.
This warning is for project developers.  Use -Wno-dev to suppress it.
OS & Version Information
Notes

Issue is not applicable for PROPRIETARY and HTTP policy modes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions