vcpkg/overlay_ports/opencv4/0006-fix-uwp.patch
raw| 1 | --- a/cmake/OpenCVModule.cmake |
| 2 | +++ b/cmake/OpenCVModule.cmake |
| 3 | @@ -1249,7 +1249,7 @@ function(ocv_add_perf_tests) |
| 4 | set_target_properties(${the_target} PROPERTIES FOLDER "tests performance") |
| 5 | endif() |
| 6 | |
| 7 | - if(WINRT) |
| 8 | + if(WINRT AND BUILD_TESTS) |
| 9 | # removing APPCONTAINER from tests to run from console |
| 10 | # look for detailed description inside of ocv_create_module macro above |
| 11 | add_custom_command(TARGET "opencv_perf_${name}" |