[CMake] CMP0054 and CMake Modules

thoni56 thomas at junovagen.se
Mon Sep 21 03:37:11 EDT 2015


I can't find a bug report on this. Is there one? 

Surely Cmake distributed modules should not generate this type of warnings.
Or am I misinterpreting the messages? 

I'm encountering numerous such problems/warnings in Cmake distributed
modules: 

CMake Warning (dev) at
/usr/share/cmake-3.3.1/Modules/CMakeParseImplicitLinkInfo.cmake:58 (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 "" will no longer be dereferenced when the policy is 
  set to NEW.  Since the policy is not set the OLD behavior will be used. 
Call Stack (most recent call first): 
  /usr/share/cmake-3.3.1/Modules/CMakeDetermineCompilerABI.cmake:80
(CMAKE_PARSE_IMPLICIT_LINK_INFO) 
  /usr/share/cmake-3.3.1/Modules/CMakeTestCXXCompiler.cmake:68
(CMAKE_DETERMINE_COMPILER_ABI) 
  src/CMakeLists.txt:2 (project) 
This warning is for project developers.  Use -Wno-dev to suppress it. 

CMake Warning (dev) at
/usr/share/cmake-3.3.1/Modules/CMakeParseImplicitLinkInfo.cmake:39 (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 "" will no longer be dereferenced when the policy is 
  set to NEW.  Since the policy is not set the OLD behavior will be used. 
Call Stack (most recent call first): 
  /usr/share/cmake-3.3.1/Modules/CMakeDetermineCompilerABI.cmake:80
(CMAKE_PARSE_IMPLICIT_LINK_INFO) 
  /usr/share/cmake-3.3.1/Modules/CMakeTestCXXCompiler.cmake:68
(CMAKE_DETERMINE_COMPILER_ABI) 
  src/CMakeLists.txt:2 (project) 
This warning is for project developers.  Use -Wno-dev to suppress it. 

CMake Warning (dev) at
/usr/share/cmake-3.3.1/Modules/CMakeParseImplicitLinkInfo.cmake:100
(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 "" will no longer be dereferenced when the policy is 
  set to NEW.  Since the policy is not set the OLD behavior will be used. 
Call Stack (most recent call first): 
  /usr/share/cmake-3.3.1/Modules/CMakeDetermineCompilerABI.cmake:80
(CMAKE_PARSE_IMPLICIT_LINK_INFO) 
  /usr/share/cmake-3.3.1/Modules/CMakeTestCXXCompiler.cmake:68
(CMAKE_DETERMINE_COMPILER_ABI) 
  src/CMakeLists.txt:2 (project) 
This warning is for project developers.  Use -Wno-dev to suppress it. 

-- Detecting CXX compile features 
-- Detecting CXX compile features - done 
CMake Warning (dev) at /usr/share/cmake-3.3.1/Modules/CTest.cmake:96 (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 "" will no longer be dereferenced when the policy is 
  set to NEW.  Since the policy is not set the OLD behavior will be used. 
Call Stack (most recent call first): 
  /usr/share/cmake-3.3.1/Modules/CTest.cmake:106 (SET_IF_SET_AND_NOT_SET) 
  cmake/Modules/MacroAddUnitTest.cmake:10 (include) 
  CMakeLists.txt:64 (include) 
This warning is for project developers.  Use -Wno-dev to suppress it. 

CMake Warning (dev) at /usr/share/cmake-3.3.1/Modules/CTest.cmake:251 (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 "" will no longer be dereferenced when the policy is 
  set to NEW.  Since the policy is not set the OLD behavior will be used. 
Call Stack (most recent call first): 
  cmake/Modules/MacroAddUnitTest.cmake:10 (include) 
  CMakeLists.txt:64 (include) 
This warning is for project developers.  Use -Wno-dev to suppress it. 



--
View this message in context: http://cmake.3232098.n2.nabble.com/CMP0054-and-CMake-Modules-tp7590137p7591577.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list