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

Fix the CMake add_executable option for samples #13

Open
ldilley opened this issue Apr 26, 2017 · 0 comments
Open

Fix the CMake add_executable option for samples #13

ldilley opened this issue Apr 26, 2017 · 0 comments
Assignees
Labels

Comments

@ldilley
Copy link
Owner

ldilley commented Apr 26, 2017

Either use the cmake_policy option and set it to "OLD" or use the CMake 3.x method to create binaries without including an explicit forward slash in the target.

CMake Warning (dev) at CMakeLists.txt:21 (add_executable):

  Policy CMP0037 is not set: Target names should not be reserved and should

  match a validity pattern.  Run "cmake --help-policy CMP0037" for policy

  details.  Use the cmake_policy command to set the policy and suppress this

  warning.

  The target name "samples/list" is reserved or not valid for certain CMake

  features, such as generator expressions, and may result in undefined

  behavior.

This warning is for project developers.  Use -Wno-dev to suppress it.
@ldilley ldilley added the bug label Apr 26, 2017
@ldilley ldilley self-assigned this Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant