summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeDependentOption/Parentheses-CMP0127-NEW.cmake
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2021-08-29 21:05:38 (GMT)
committerBrad King <brad.king@kitware.com>2021-09-10 13:46:55 (GMT)
commit059b90a0b4760c3c0bb761870be2a0811f80ce70 (patch)
tree78875945c1e64300ad5a1d2a40811ef4bb2389af /Tests/RunCMake/CMakeDependentOption/Parentheses-CMP0127-NEW.cmake
parented9abd99772cbdcb2e4dd195eb4a62104ce86c95 (diff)
downloadCMake-059b90a0b4760c3c0bb761870be2a0811f80ce70.zip
CMake-059b90a0b4760c3c0bb761870be2a0811f80ce70.tar.gz
CMake-059b90a0b4760c3c0bb761870be2a0811f80ce70.tar.bz2
CMakeDependentOption: Introduce policy CMP0127 for full Condition Syntax
Fixes: #22303
Diffstat (limited to 'Tests/RunCMake/CMakeDependentOption/Parentheses-CMP0127-NEW.cmake')
-rw-r--r--Tests/RunCMake/CMakeDependentOption/Parentheses-CMP0127-NEW.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakeDependentOption/Parentheses-CMP0127-NEW.cmake b/Tests/RunCMake/CMakeDependentOption/Parentheses-CMP0127-NEW.cmake
new file mode 100644
index 0000000..5a2b018
--- /dev/null
+++ b/Tests/RunCMake/CMakeDependentOption/Parentheses-CMP0127-NEW.cmake
@@ -0,0 +1,9 @@
+include(CMakeDependentOption)
+
+cmake_policy(SET CMP0127 NEW)
+
+set(A 1)
+set(B 1)
+set(C 0)
+cmake_dependent_option(USE_FOO "Use Foo" ON "A AND (B OR C)" OFF)
+message(STATUS "USE_FOO='${USE_FOO}'")