File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ int cv::waitKey(int delay)
218
218
{
219
219
CV_TRACE_FUNCTION ();
220
220
int code = waitKeyEx (delay);
221
- #ifndef HAVE_WINRT
221
+ #ifndef WINRT
222
222
static int use_legacy = -1 ;
223
223
if (use_legacy < 0 )
224
224
{
Original file line number Diff line number Diff line change 24
24
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25
25
// POSSIBILITY OF SUCH DAMAGE.
26
26
27
+ #include " precomp.hpp"
28
+
27
29
#include " opencv2\highgui\highgui_winrt.hpp"
28
30
#include " window_winrt_bridge.hpp"
29
31
Original file line number Diff line number Diff line change @@ -256,6 +256,9 @@ endif()
256
256
257
257
if (MSVC )
258
258
set_target_properties (${the_module} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG" )
259
+ if (DEFINED WINRT AND NOT DEFINED ENABLE_WINRT_MODE_NATIVE )
260
+ set_target_properties (${the_module} PROPERTIES VS_DESKTOP_EXTENSIONS_VERSION "${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION} " )
261
+ endif ()
259
262
endif ()
260
263
261
264
#stop automatic dependencies propagation for this module
You can’t perform that action at this time.
0 commit comments