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.
This commit is contained in:
okuoku 2021-05-02 03:47:00 +09:00
parent 56b17b2f2d
commit 4c09598526

View File

@ -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)