[Mlir-commits] [llvm] [mlir] [CMake] Do not set CMP0116 explicitly to old (PR #90385)

NAKAMURA Takumi llvmlistbot at llvm.org
Fri Oct 18 20:57:26 PDT 2024


================
@@ -22,19 +22,16 @@ function(tablegen project ofn)
   endif()
 
   # Use depfile instead of globbing arbitrary *.td(s) for Ninja.
-  if(CMAKE_GENERATOR MATCHES "Ninja")
-    # Make output path relative to build.ninja, assuming located on
-    # ${CMAKE_BINARY_DIR}.
+  cmake_policy(GET CMP0116 CMP0116_STATE)
----------------
chapuni wrote:

Nit: We prefer small letter for local-supposed vars.

https://github.com/llvm/llvm-project/pull/90385


More information about the Mlir-commits mailing list