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

CMP0058: Ninja requires custom command byproducts to be explicit. #10

Open
xSke opened this issue Nov 5, 2018 · 0 comments
Open

CMP0058: Ninja requires custom command byproducts to be explicit. #10

xSke opened this issue Nov 5, 2018 · 0 comments

Comments

@xSke
Copy link

xSke commented Nov 5, 2018

Running this with the Ninja generator results in the following warning:

[cmake] CMake Warning (dev):
[cmake]   Policy CMP0058 is not set: Ninja requires custom command byproducts to be
[cmake]   explicit.  Run "cmake --help-policy CMP0058" for policy details.  Use the
[cmake]   cmake_policy command to set the policy and suppress this warning.
[cmake] 
[cmake]   This project specifies custom command DEPENDS on files in the build tree
[cmake]   that are not specified as the OUTPUT or BYPRODUCTS of any
[cmake]   add_custom_command or add_custom_target:
[cmake] 
[cmake]    _cmrc/include/cmrc/cmrc.hpp
[cmake] 
[cmake]   For compatibility with versions of CMake that did not have the BYPRODUCTS
[cmake]   option, CMake is generating phony rules for such files to convince 'ninja'
[cmake]   to build.
[cmake] 
[cmake]   Project authors should add the missing BYPRODUCTS or OUTPUT options to the
[cmake]   custom commands that produce these files.
[cmake] 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