Skip to content

Commit e261519

Browse files
authored
[mlir] Allow CXX standard to be overridden (#112957)
MLIR previously hardcoded the CXX version to C++17. Updated to allow for the CXX version to be set by clients (mirrors other LLVM projects).
1 parent 03dcd88 commit e261519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ endif()
1616

1717
# Must go below project(..)
1818
include(GNUInstallDirs)
19-
set(CMAKE_CXX_STANDARD 17)
19+
set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to conform to")
2020

2121
if(MLIR_STANDALONE_BUILD)
2222
find_package(LLVM CONFIG REQUIRED)

0 commit comments

Comments
 (0)