From 4c09598526318598218ba3d7192aad769cda70c5 Mon Sep 17 00:00:00 2001 From: okuoku Date: Sun, 2 May 2021 03:47:00 +0900 Subject: [PATCH] Set CMake policy CMP0054 to NEW to silence warning CMAKE_SYSTEM_NAME variable might evaluate to existing variable such as CYGWIN. This setting also matches with SPIRV-Tools. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 70fe3fe9..0600516e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,9 @@ cmake_minimum_required(VERSION 2.8.12) if (POLICY CMP0048) cmake_policy(SET CMP0048 NEW) endif() +if(POLICY CMP0054) + cmake_policy(SET CMP0054 NEW) +endif() project(glslang LANGUAGES CXX)