Skip to content

Commit

Permalink
Expose cxx standard (onnx#6625)
Browse files Browse the repository at this point in the history
### Description
- Expose cxx standard

### Motivation and Context

CXX standard exposure is required to properly build against ONNX
library.

Example of the issue
microsoft/vcpkg#42942 (comment)

Generated target will have new property:

![{33169E2C-86D0-4E3A-BFF6-E27E436043BC}](https://github.com/user-attachments/assets/0fffaf33-dcb6-4f7b-b402-7605ddc7e73a)

Signed-off-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Signed-off-by: seungwoo-ji <seungwoo.ji@nuvilab.com>
  • Loading branch information
ilya-lavrenov authored and seungwoo-ji-03 committed Feb 17, 2025
1 parent 9872147 commit 1fead4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ else()
set_target_properties(onnx_proto PROPERTIES VISIBILITY_INLINES_HIDDEN 1)
endif()
target_compile_definitions(onnx_proto PRIVATE ${ONNX_API_DEFINE})
target_compile_features(onnx_proto PUBLIC cxx_std_${CMAKE_CXX_STANDARD})

if(ONNX_USE_LITE_PROTO)
if(TARGET protobuf::libprotobuf-lite)
Expand Down

0 comments on commit 1fead4d

Please sign in to comment.