MantisBT - CMake
View Issue Details
0015606CMakeCMakepublic2015-06-09 22:052016-01-04 11:51
Arunava Nag 
 
urgentminoralways
closedno change required 
WindowsWindows 7
 
 
0015606: Having problem with building a C++ file using Cmake from linux to windows
CMake Warning (dev) at CMakeLists.txt:6 (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.

  Quoted variables like "MSVC" will no longer be dereferenced when the policy
  is set to NEW. Since the policy is not set the OLD behavior will be used.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:11 (elseif):
  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.

  Quoted variables like "MSVC" will no longer be dereferenced when the policy
  is set to NEW. Since the policy is not set the OLD behavior will be used.
This warning is for project developers. Use -Wno-dev to suppress it.

Configuring done
No tags attached.
Issue History
2015-06-09 22:05Arunava NagNew Issue
2015-06-10 08:31Brad KingNote Added: 0038899
2015-06-10 08:31Brad KingStatusnew => resolved
2015-06-10 08:31Brad KingResolutionopen => no change required
2016-01-04 11:51Robert MaynardNote Added: 0040064
2016-01-04 11:51Robert MaynardStatusresolved => closed

Notes
(0038899)
Brad King   
2015-06-10 08:31   
This question is better suited for the mailing list because it is about a project using CMake and not a bug in CMake. Please post there instead:

 http://www.cmake.org/mailman/listinfo/cmake [^]

Please include some information about the actual lines of code in the CMakeLists.txt file that shows the warning.
(0040064)
Robert Maynard   
2016-01-04 11:51   
Closing resolved issues that have not been updated in more than 4 months.