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

a warning when do configure maybe caused by new version of cmake #3115

Closed
zpcxh95 opened this issue Mar 24, 2016 · 0 comments
Closed

a warning when do configure maybe caused by new version of cmake #3115

zpcxh95 opened this issue Mar 24, 2016 · 0 comments

Comments

@zpcxh95
Copy link

zpcxh95 commented Mar 24, 2016

platform : windows 10
cmake version:3.5.0
Shogun version: 4.1.0

when I do configure shogun-4.1.0, cmake tell me that:

CMake Warning (dev) at cmake/FindCCache.cmake:15 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

this is the policy CMP0054:
image

this is cmake/FindCCache.cmake

image

then I open PATH_SHOGUN/CMakeLists.txt, add:

  IF(POLICY CMP0054)
      CMAKE_POLICY(SET CMP0054 OLD)
      SET(CMAKE_POLICY_DEFAULT_CMP0054 OLD)
  ENDIF(POLICY CMP0054)

then the warning disappear

@zpcxh95 zpcxh95 changed the title a warning when configure maybe cause by new version of cmake a warning when do configure maybe caused by new version of cmake Mar 24, 2016
vigsterkr added a commit that referenced this issue May 25, 2016
OXPHOS pushed a commit to OXPHOS/shogun that referenced this issue May 30, 2016
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