Skip to content

Commit daed86e

Browse files
authored
Merge branch 'main' into OMMTestPolishing
2 parents d2c925c + 3035d31 commit daed86e

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

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: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.17.2) # HLSL Change - Require CMake 3.17.2.
2+
3+
# FIXME: It may be removed when we use 2.8.12.
4+
if(CMAKE_VERSION VERSION_LESS 2.8.12)
5+
# Invalidate a couple of keywords.
6+
set(cmake_2_8_12_INTERFACE)
7+
set(cmake_2_8_12_PRIVATE)
8+
else()
9+
# Use ${cmake_2_8_12_KEYWORD} intead of KEYWORD in target_link_libraries().
10+
set(cmake_2_8_12_INTERFACE INTERFACE)
11+
set(cmake_2_8_12_PRIVATE PRIVATE)
12+
if(POLICY CMP0022)
13+
cmake_policy(SET CMP0022 NEW) # automatic when 2.8.12 is required
14+
endif()
15+
endif()
216

317
# If we are not building as a part of LLVM, build Clang as an
418
# standalone project, using LLVM as an external library:

0 commit comments

Comments
 (0)