Running cmake version 3.12, if I run find_package(Doxygen) I get the following warning, which results in an error:
CMake Warning (dev) in /usr/share/cmake-3.12/Modules/FindDoxygen.cmake: Policy CMP0057 is not set: Support new IN_LIST if() operator. Run "cmake --help-policy CMP0057" for policy details. Use the cmake_policy command to set the policy and suppress this warning. IN_LIST will be interpreted as an operator when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Call Stack (most recent call first): src/CMakeLists.txt:5 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. CMake Error at /usr/share/cmake-3.12/Modules/FindDoxygen.cmake:580 (elseif): given arguments: "NOT" "doxygen" "IN_LIST" "Doxygen_FIND_COMPONENTS" Unknown arguments specified Call Stack (most recent call first): src/CMakeLists.txt:5 (find_package) -- Configuring incomplete, errors occurred! See also "/tmp/cio/CMakeFiles/CMakeOutput.log".