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 "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 "bsdtar". Use the
target name directly with add_custom_command, or use the generator
expression $<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 "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "CMAKE_C_COMPILER_ID" 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 |