From d7296924c6d6eb456ed1aa80e17aced2c504c07a Mon Sep 17 00:00:00 2001 From: ankitm3k Date: Fri, 23 Aug 2024 22:03:15 +0530 Subject: [PATCH] update: Enable C++ 20 Standard for the build --- cmake/onnxruntime_providers_openvino.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/onnxruntime_providers_openvino.cmake b/cmake/onnxruntime_providers_openvino.cmake index 5d1a481d40abc..e559583fae8f5 100644 --- a/cmake/onnxruntime_providers_openvino.cmake +++ b/cmake/onnxruntime_providers_openvino.cmake @@ -36,6 +36,7 @@ onnxruntime_add_include_to_target(onnxruntime_providers_openvino onnxruntime_common onnx) install(FILES ${PROJECT_SOURCE_DIR}/../include/onnxruntime/core/providers/openvino/openvino_provider_factory.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/onnxruntime/) + set_target_properties(onnxruntime_providers_openvino PROPERTIES CXX_STANDARD 20) set_target_properties(onnxruntime_providers_openvino PROPERTIES LINKER_LANGUAGE CXX) set_target_properties(onnxruntime_providers_openvino PROPERTIES FOLDER "ONNXRuntime") if(NOT MSVC)