Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake warning: add_custom_command with PRE_BUILD #232

Open
algrant-arm opened this issue Dec 5, 2024 · 0 comments
Open

CMake warning: add_custom_command with PRE_BUILD #232

algrant-arm opened this issue Dec 5, 2024 · 0 comments

Comments

@algrant-arm
Copy link
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant