aboutsummaryrefslogtreecommitdiff
path: root/ports/opencv4/0009-fix-uwp.patch
blob: 1c40cf1e17d4aa08a6225b3261a664f6e90e74ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cmake/OpenCVModule.cmake b/cmake/OpenCVModule.cmake
index 9053957..d2b6412 100644
--- a/cmake/OpenCVModule.cmake
+++ b/cmake/OpenCVModule.cmake
@@ -1196,7 +1196,7 @@ function(ocv_add_perf_tests)
         set_target_properties(${the_target} PROPERTIES FOLDER "tests performance")
       endif()
 
-      if(WINRT)
+      if(WINRT AND BUILD_TESTS)
         # removing APPCONTAINER from tests to run from console
         # look for detailed description inside of ocv_create_module macro above
         add_custom_command(TARGET "opencv_perf_${name}"