From 1f98b3d12e2d8dcea152c0deb0f19b53578ec8f0 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Mon, 24 Sep 2018 11:19:47 -0400 Subject: [PATCH] COMP: Set CMP0074 to NEW To address in the ITKExamples Superbuild: CMake Warning (dev) at Modules/ThirdParty/VNL/src/vxl/config/cmake/Modules/FindZLIB.cmake:20 (find_package): Policy CMP0074 is not set: find_package uses _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: /.../ITKEx-bld/zlib-install For compatibility, CMake is ignoring the variable. Call Stack (most recent call first): --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e78c80ebbf3..e9ee2bf86b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,8 @@ foreach(p ##----- Policies Introduced by CMake 3.4 CMP0065 #: Do not add flags to export symbols from executables without the ENABLE_EXPORTS target property. CMP0064 #: Support new TEST if() operator. + ##----- Policies Introduced by CMake 3.4 + CMP0074 #:.`find_package()`` uses ``_ROOT`` variables. ) if(POLICY ${p}) cmake_policy(SET ${p} NEW)