File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,15 +17,6 @@ if(POLICY CMP0022)
1717 cmake_policy (SET CMP0022 NEW ) # automatic when 2.8.12 is required
1818endif ()
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-
2920if (CMAKE_VERSION VERSION_LESS 3.1.20141117)
3021 set (cmake_3_2_USES_TERMINAL)
3122else ()
Original file line number Diff line number Diff line change 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:
You can’t perform that action at this time.
0 commit comments