[Mlir-commits] [mlir] 0096d17 - Add `set(CMAKE_CXX_STANDARD 17)` to MLIR CMakeLists.txt

Mehdi Amini llvmlistbot at llvm.org
Tue Feb 7 15:56:34 PST 2023


Author: Mehdi Amini
Date: 2023-02-07T15:56:23-08:00
New Revision: 0096d17e2cc1d337f531c3f292330d15ec132c25

URL: https://github.com/llvm/llvm-project/commit/0096d17e2cc1d337f531c3f292330d15ec132c25
DIFF: https://github.com/llvm/llvm-project/commit/0096d17e2cc1d337f531c3f292330d15ec132c25.diff

LOG: Add `set(CMAKE_CXX_STANDARD 17)` to MLIR CMakeLists.txt

This is only useful when building the project in a "standalone" way: that is by
invoking cmake pointing at mlir/ to build against an already built LLVM.

Fixes #60574

Added: 
    

Modified: 
    mlir/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt
index ab690b16a4fb..c9b0d53bc3e9 100644
--- a/mlir/CMakeLists.txt
+++ b/mlir/CMakeLists.txt
@@ -22,6 +22,7 @@ endif()
 
 # Must go below project(..)
 include(GNUInstallDirs)
+set(CMAKE_CXX_STANDARD 17)
 
 if(MLIR_STANDALONE_BUILD)
   find_package(LLVM CONFIG REQUIRED)


        


More information about the Mlir-commits mailing list