Skip to content

Commit 3035d31

Browse files
authored
Require CMake 3.17, remove CMP0051 (microsoft#7287)
Hopefully this works and gets us able to build with CMake 4+.
1 parent 206b775 commit 3035d31

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@ if(POLICY CMP0022)
1717
cmake_policy(SET CMP0022 NEW) # automatic when 2.8.12 is required
1818
endif()
1919

20-
if (POLICY CMP0051)
21-
# CMake 3.1 and higher include generator expressions of the form
22-
# $<TARGETLIB:obj> in the SOURCES property. These need to be
23-
# stripped everywhere that access the SOURCES property, so we just
24-
# defer to the OLD behavior of not including generator expressions
25-
# in the output for now.
26-
cmake_policy(SET CMP0051 OLD)
27-
endif()
28-
2920
if(CMAKE_VERSION VERSION_LESS 3.1.20141117)
3021
set(cmake_3_2_USES_TERMINAL)
3122
else()

tools/clang/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.8)
1+
cmake_minimum_required(VERSION 3.17.2) # HLSL Change - Require CMake 3.17.2.
22

33
# FIXME: It may be removed when we use 2.8.12.
44
if(CMAKE_VERSION VERSION_LESS 2.8.12)

0 commit comments

Comments
 (0)