8000 CMake warning: add_custom_command with PRE_BUILD · Issue #232 · google/autofdo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
CMake warning: add_custom_command with PRE_BUILD #232
Open
@algrant-arm

Description

@algrant-arm

CMakeLists.txt is triggering a warning from the latest cmake built from source (3.31.1) on Ubuntu 20.04:

../cmake-3.31 -DENABLE_TOOL=GCOV -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED=On ../

prints a warning

CMake Warning (dev) at CMakeLists.txt:168 (add_custom_command):
  The following keywords are not supported when using
  add_custom_command(OUTPUT): PRE_BUILD.

  Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
  Run "cmake --help-policy CMP0175" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
Call Stack (most recent call first):
  CMakeLists.txt:855 (build_gcov)
This warning is for project developers.  Use -Wno-dev to suppress it.

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

      0