<div dir="ltr"><div><div><div><br clear="all"></div>I am so lost in CMB0054 errors I and internet searches I can't remember why I wanted Itk-4.8 in the first place.  Here goes:<br><br></div>When using CMake 3.9.0-rc6 or basically 3.1+ (onward) and trying:<br><br>        find_package( ITK )<br><br></div>with 4.8 built / installed and receiving: <br><br><span style="color:rgb(255,0,0)">CMake Warning (dev) at install/lib/cmake/ITK-4.8/ITKTargets.cmake:28 (if):<br>  Policy CMP0054 is not set: Only interpret if() arguments as variables or<br>  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy<br>  details.  Use the cmake_policy command to set the policy and suppress this<br>  warning.<br><br>  Quoted variables like "" will no longer be dereferenced when the policy is<br>  set to NEW.  Since the policy is not set the OLD behavior will be used.<br>Call Stack (most recent call first):<br>  install/lib/cmake/ITK-4.8/ITKConfig.cmake:50 (include)<br>  subprojects/ctutil/CMake/ctutil/itk/itk_config.cmake:137 (find_package)<br>  subprojects/ctutil/CMake/ctutil/Findctutil.cmake:224 (itk_config)<br>  CMakeLists.txt:123 (find_package)<br>This warning is for project developers.  Use -Wno-dev to suppress it.<br></span>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)">CMake Warning (dev) at install/lib/cmake/ITK-4.8/ITKTargets.cmake:36 (if):<br>  Policy CMP0054 is not set: Only interpret if() arguments as variables or<br>  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy<br>  details.  Use the cmake_policy command to set the policy and suppress this<br>  warning.<br><br>  Quoted variables like "" will no longer be dereferenced when the policy is<br>  set to NEW.  Since the policy is not set the OLD behavior will be used.<br>Call Stack (most recent call first):<br>  install/lib/cmake/ITK-4.8/ITKConfig.cmake:50 (include)<br>  subprojects/ctutil/CMake/ctutil/itk/itk_config.cmake:137 (find_package)<br>  subprojects/ctutil/CMake/ctutil/Findctutil.cmake:224 (itk_config)<br>  CMakeLists.txt:123 (find_package)<br>This warning is for project developers.  Use -Wno-dev to suppress it.</span></p><p style="margin:0px;text-indent:0px"><span style="color:rgb(255,0,0)"></span></p><div><br></div><div>then looking at line 28 in <span style="color:rgb(255,0,0)">install/lib/cmake/ITK-4.8/ITKTargets.cmake:28</span><br><br>if("${_targetsDefined}" STREQUAL "${_expectedTargets}")<br><br></div><div></div><div><br></div><div>then reading:<br><div><br><a href="https://cmake.org/cmake/help/v3.1/policy/CMP0054.html">https://cmake.org/cmake/help/v3.1/policy/CMP0054.html</a><br><br></div><div>I always new CMake was and is broken (language, use, and documentation), but never such a realization as now.<br></div><div><br></div><div>and bits like<br><br><a href="https://cmake.org/pipermail/cmake/2014-December/059317.html">https://cmake.org/pipermail/cmake/2014-December/059317.html</a><br><a href="https://cmake.org/cmake/help/v3.1/command/cmake_policy.html#command:cmake_policy">https://cmake.org/cmake/help/v3.1/command/cmake_policy.html#command:cmake_policy</a><br><br></div><div>then ...sigh... then trying:<br><br>        cmake_policy(PUSH)<br>        cmake_policy(SET CMP0054 OLD)<br>        find_package( ITK )<br>        cmake_policy(POP)<br><br></div><div>and still getting:<br></div><div><br><span style="color:rgb(255,0,0)">CMake Warning (dev) at install/lib/cmake/ITK-4.8/ITKTargets.cmake:28 (if):<br>  Policy CMP0054 is not set: Only interpret if() arguments as variables or<br>  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy<br>  details.  Use the cmake_policy command to set the policy and suppress this<br>  warning.</span><br><br></div><div>and wondering does the cmake_policy push, pop, set do anything here?  <br><br></div><div>I am left wondering who, what, why am I here? Maybe Sigourney Weaver can help (see title).<br></div><div><br>from: <br><br><a href="https://en.wikipedia.org/wiki/CMake">https://en.wikipedia.org/wiki/CMake</a><br><br>"CMake development began in 1999 in response to the need for a cross-platform build environment for the Insight Segmentation and Registration Toolkit (ITK)"<br><br></div><div>If only I could get CMake to work with the package it was originally created to build.<br></div><div><br></div></div></div>