Skip to content

Commit 6f790f7

Browse files
committed
[mlir] Specify CMAKE_CXX_STANDARD to standalone dialect
This addresses a compilation failure on GCC 5: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support Differential Revision: https://reviews.llvm.org/D79439
1 parent b8a616e commit 6f790f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mlir/examples/standalone/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ endif()
1515

1616
project(standalone-dialect LANGUAGES CXX C)
1717

18+
set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard to conform to")
19+
1820
find_package(MLIR REQUIRED CONFIG)
1921

2022
message(STATUS "Using MLIRConfig.cmake in: ${MLIR_DIR}")

0 commit comments

Comments
 (0)