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
This commit is contained in:
Mehdi Amini 2023-02-07 15:54:27 -08:00
parent ebf22c40b8
commit 0096d17e2c

View File

@ -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)