From 7a614977f9443146e8b423b6dc5a11a7c79862ce Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 29 Mar 2022 16:26:26 -0400 Subject: CMakeDependentOption: improve documentation This makes it far clearer that `` is a list up front instead of burying the lede because a list is generally "trivially true" in CMake[1]. Also clarify that `` is only available as a local variable and if queried outside of the "scope" of the `cmake_dependent_option` call, will get the stored user cache value. [1] The exception being when the last entry ends in `-NOTFOUND`. Suggested-by: Rui Oliveira --- Modules/CMakeDependentOption.cmake | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Modules/CMakeDependentOption.cmake b/Modules/CMakeDependentOption.cmake index b7c478f..ac0e262 100644 --- a/Modules/CMakeDependentOption.cmake +++ b/Modules/CMakeDependentOption.cmake @@ -16,13 +16,18 @@ conditions are true. cmake_dependent_option(