We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae1332c commit b134db8Copy full SHA for b134db8
1 file changed
backends/openvino/CMakeLists.txt
@@ -35,11 +35,13 @@ include(${EXECUTORCH_ROOT}/tools/cmake/Utils.cmake)
35
add_library(openvino_backend STATIC)
36
37
# Enable exceptions and RTTI for OpenVINO backend
38
-target_compile_options(
39
- openvino_backend
40
- PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/GR /EHsc>
41
- $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-frtti -fexceptions>
+set(_openvino_compile_options
+ $<$<CXX_COMPILER_ID:MSVC>:/EHsc
+ /GR>
+ $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-frtti
42
+ -fexceptions>
43
)
44
+target_compile_options(openvino_backend PRIVATE ${_openvino_compile_options})
45
46
# Add source files for OpenVINO backend
47
target_sources(
0 commit comments