Import 2017-06-07 23:51:09: master 9d9d2ab6

Author Committer Branch Timestamp Parent
jcfr jcfr master 2015-01-21 02:56:26 master f418e7f3
Changeset

COMP: Update libarchive to fix CMP0054 and CMP0026 warnings

This commit fixes warnings occurring when using CMake >= 3.1.0

//----------------
Author: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
Date: Wed Jan 21 02:23:46 2015 -0500

Fix CMP0026 warning related to usage of GET_TARGET_PROPERTY with LOCATION property

Backported from libarchive/libarchive@c62d30e

This commit fixes warning like this one:

CMake Warning (dev) at tar/CMakeLists.txt:41 (GET_TARGET_PROPERTY):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run &quot;cmake --help-policy CMP0026&quot; 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 &quot;bsdtar&quot;.  Use the
  target name directly with add_custom_command, or use the generator
  expression $&lt;TARGET_FILE>, as appropriate.

Author: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
Date: Wed Jan 21 02:14:37 2015 -0500

Fix warnings for CMake Policy CMP0054

This commit ensures the variables CMAKE_C_COMPILER_ID and
CMAKE_C_COMPILER_ID will always be interpreted by removing
the double quotes.

It fixes warnings like this one:

CMake Warning (dev) at CMakeLists.txt:91 (IF):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run &quot;cmake --help-policy CMP0054&quot; for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like &quot;CMAKE_C_COMPILER_ID&quot; 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.

//----------------

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23895 3bd1e089-480b-0410-8dfb-8563597acbee

mod - SuperBuild/External_LibArchive.cmake Diff File