mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
059b90a0b4
Fixes: #22303
8 lines
199 B
CMake
8 lines
199 B
CMake
include(CMakeDependentOption)
|
|
|
|
cmake_policy(SET CMP0127 NEW)
|
|
|
|
set(FOO "lower")
|
|
cmake_dependent_option(USE_FOO "Use Foo" ON "FOO MATCHES \"(UPPER|lower)\"" OFF)
|
|
message(STATUS "USE_FOO='${USE_FOO}'")
|