Skip to content

Commit 0096d17

Browse files
committed
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
1 parent ebf22c4 commit 0096d17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ endif()
2222

2323
# Must go below project(..)
2424
include(GNUInstallDirs)
25+
set(CMAKE_CXX_STANDARD 17)
2526

2627
if(MLIR_STANDALONE_BUILD)
2728
find_package(LLVM CONFIG REQUIRED)

0 commit comments

Comments
 (0)