Skip to content

Commit b134db8

Browse files
committed
Fixed CMakelists.txt
1 parent ae1332c commit b134db8

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

backends/openvino/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ include(${EXECUTORCH_ROOT}/tools/cmake/Utils.cmake)
3535
add_library(openvino_backend STATIC)
3636

3737
# 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>
38+
set(_openvino_compile_options
39+
$<$<CXX_COMPILER_ID:MSVC>:/EHsc
40+
/GR>
41+
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-frtti
42+
-fexceptions>
4243
)
44+
target_compile_options(openvino_backend PRIVATE ${_openvino_compile_options})
4345

4446
# Add source files for OpenVINO backend
4547
target_sources(

0 commit comments

Comments
 (0)