trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: September 2014

New CMake warning CMP0026

From: Slávek Banko <slavek.banko@...>
Date: Wed, 24 Sep 2014 23:36:44 +0200
Hi all,

during the current building, I noticed on the Debian Jessie that we have new 
trouble with newer CMake:

CMake Warning (dev) at cmake/modules/TDEMacros.cmake:434 
(get_target_property):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The LOCATION property should not be read from target
  "kgreet_classic-module".  Use the target name directly with
  add_custom_command, or use the generator expression $<TARGET_FILE>, as
  appropriate.


There are many such reports on the same topic. I do not know if simply setting 
the old behavior is the right way.

IF( POLICY CMP0026 )
  CMAKE_POLICY( SET CMP0026 OLD )
ENDIF( POLICY CMP0026 )

See: http://www.cmake.org/cmake/help/v3.0/policy/CMP0026.html

What do you think?

-- 
Sl�vek