Skip to content

Commit 589b7f2

Browse files
committed
Do not force the C++ standard to 17, if it is already set by an including project or developer
Signed-off-by: Rickert, Jonas <[email protected]>
1 parent 64527b0 commit 589b7f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if (NOT ONNX_MLIR_ENABLE_PYBIND)
2222
set(ONNX_MLIR_INSTALL_PYTHON_EXTENSIONS OFF)
2323
endif()
2424

25-
set(CMAKE_CXX_STANDARD 17)
25+
set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to use")
2626

2727
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
2828

0 commit comments

Comments
 (0)