]> git.ipfire.org Git - thirdparty/libarchive.git/commit
cmake: Set CMP0074 to NEW 1101/head
authorJean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
Thu, 6 Dec 2018 06:31:55 +0000 (01:31 -0500)
committerJean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
Thu, 6 Dec 2018 06:48:42 +0000 (01:48 -0500)
commit71a16e18591cb570515687c42eb4e3c77605e014
tree6e6a4a878bb25324200f912b172c716819e369cb
parentbc7017b56381788f0a3d68057f2304d0f8f6d3bb
cmake: Set CMP0074 to NEW

This is to address the following configuration warning reported
when configuring LibArchive passing ZLIB_ROOT option:

  CMake Warning (dev) at CMakeLists.txt:393 (FIND_PACKAGE):
    Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
    Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
    command to set the policy and suppress this warning.

    CMake variable ZLIB_ROOT is set to:

      /path/to/zlib-install

    For compatibility, CMake is ignoring the variable.
  This warning is for project developers.  Use -Wno-dev to suppress it.

Co-authored-by: Matt McCormick <matt.mccormick@kitware.com>
CMakeLists.txt