Skip to content

Commit 3265c19

Browse files
Address feedback
1 parent 38d2239 commit 3265c19

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/cmake/modules/TableGen.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function(tablegen project ofn)
2222
endif()
2323

2424
# Use depfile instead of globbing arbitrary *.td(s) for Ninja.
25-
cmake_policy(GET CMP0116 CMP0116_STATE)
26-
if(CMAKE_GENERATOR MATCHES "Ninja" AND CMP0116_STATE STREQUAL NEW)
25+
cmake_policy(GET CMP0116 cmp0116_state)
26+
if(CMAKE_GENERATOR MATCHES "Ninja" AND cmp0116_state STREQUAL NEW)
2727
# CMake emits build targets as relative paths but Ninja doesn't identify
2828
# absolute path (in *.d) as relative path (in build.ninja). Post CMP0116,
2929
# CMake handles this discrepancy for us, otherwise we use the fallback

mlir/cmake/modules/AddMLIR.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ function(_pdll_tablegen project ofn)
4343
endif()
4444

4545
# Use depfile instead of globbing arbitrary *.td(s) for Ninja.
46-
cmake_policy(GET CMP0116 CMP0116_STATE)
47-
if(CMAKE_GENERATOR MATCHES "Ninja" AND CMP0116_STATE STREQUAL NEW)
46+
cmake_policy(GET CMP0116 cmp0116_state)
47+
if(CMAKE_GENERATOR MATCHES "Ninja" AND cmp0116_state STREQUAL NEW)
4848
# CMake emits build targets as relative paths but Ninja doesn't identify
4949
# absolute path (in *.d) as relative path (in build.ninja). Post CMP0116,
5050
# CMake handles this discrepancy for us. Otherwise, we use the fallback

0 commit comments

Comments
 (0)