Skip to content

Commit 1b1b683

Browse files
committed
Enable exceptions for Windows SYCL tests
1 parent af7756c commit 1b1b683

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ itlabai_copy_opencv_runtime(run_test)
1313

1414
if(ITLABAI_ENABLE_SYCL)
1515
find_package(AdaptiveCpp CONFIG REQUIRED)
16+
if(WIN32 AND CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC")
17+
target_compile_options(run_test PRIVATE /EHsc)
18+
endif()
1619
if(NOT WIN32)
1720
add_sycl_to_target(TARGET run_test SOURCES ${TEST_SRC_FILES})
1821
endif()

0 commit comments

Comments
 (0)