Hello!
I am confused with description of CMP0127. It says that:
requires expressions like:
"FOO MATCHES (UPPER|lower)"
to be re-written as:
"FOO MATCHES \"(UPPER|lower)\""
I’ve written CMakeLists.txt like this:
cmake_minimum_required(VERSION 3.10)
project(dependent_option)
include(CMakeDependentOption)
option(FOO "" "")
cmake_dependent_option(BAR "" "" "FOO MATCHES \"(UPPER|lower)\"" OFF)
But it still gives me warning:
$ cmake -B build
CMake Warning (dev) at /usr/share/cmake/Modules/CMakeDependentOption.cmake:89 (message):
Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
Syntax. Run "cmake --help-policy CMP0127" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt:7 (cmake_dependent_option)
This warning is for project developers. Use -Wno-dev to suppress it.