summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/if/unbalanced-parenthesis.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/if/unbalanced-parenthesis.cmake')
-rw-r--r--Tests/RunCMake/if/unbalanced-parenthesis.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/if/unbalanced-parenthesis.cmake b/Tests/RunCMake/if/unbalanced-parenthesis.cmake
new file mode 100644
index 0000000..c51c755
--- /dev/null
+++ b/Tests/RunCMake/if/unbalanced-parenthesis.cmake
@@ -0,0 +1,8 @@
+set(var_with_paren "(")
+set(some_list "")
+
+if(NOT ${var_with_paren} IN_LIST some_list)
+ message(STATUS "Never prints")
+else()
+ message(STATUS "Never prints")
+endif()