From 8ede35523e6e3b6d562d30a3df7780b66bdbd971 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Wed, 12 Sep 2018 14:50:16 +0800 Subject: IN_LIST: Ensure policy allows if(IN_LIST) if used by a module --- Modules/CSharpUtilities.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Modules/CSharpUtilities.cmake') diff --git a/Modules/CSharpUtilities.cmake b/Modules/CSharpUtilities.cmake index e9e1510b65..6a4b5c7f7b 100644 --- a/Modules/CSharpUtilities.cmake +++ b/Modules/CSharpUtilities.cmake @@ -184,6 +184,9 @@ Helper functions which are used by the above ones #]=======================================================================] +cmake_policy(PUSH) +cmake_policy(SET CMP0057 NEW) # if IN_LIST + function(csharp_get_filename_keys OUT) set(${OUT} "") foreach(f ${ARGN}) @@ -304,3 +307,5 @@ function(csharp_set_xaml_cs_properties) endif() endforeach() endfunction() + +cmake_policy(POP) -- cgit v1.2.1