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 CMP0048 warning. #535

Closed
evgen231 opened this issue Jul 4, 2017 · 2 comments
Closed

CMake CMP0048 warning. #535

evgen231 opened this issue Jul 4, 2017 · 2 comments

Comments

@evgen231
Copy link
Contributor

evgen231 commented Jul 4, 2017

I'm using fmt as subdirectory

CMakeLists.txt:

cmake_minimum_required(VERSION 3.8)
project(untiteled VERSION 1.0 LANGUAGES CXX)
...

and it's generate warning:

CMake Warning (dev) at 3rdparty/fmt-4.0.0/CMakeLists.txt:38 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
...

It could be fixed with

if (POLICY CMP0048)
  cmake_policy(SET CMP0048 OLD)
endif ()

after cmake_minimum_required(VERSION 2.8.12).

@vitaut
Copy link
Contributor

vitaut commented Jul 4, 2017

Thanks for the bug report! Could you by any chance submit a PR?

@evgen231
Copy link
Contributor Author

evgen231 commented Jul 5, 2017

PR #536

@vitaut vitaut closed this as completed Jul 5, 2017
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

2 participants