Skip to content

Commit

Permalink
Set CMake policy CMP0054 to NEW to silence warning
Browse files Browse the repository at this point in the history
CMAKE_SYSTEM_NAME variable might evaluate to existing variable such as
CYGWIN. This setting also matches with SPIRV-Tools.
  • Loading branch information
okuoku committed May 1, 2021
1 parent 56b17b2 commit 4c09598
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4c09598

Please sign in to comment.