highgui: fix Win32 with OPENGL=ON

pull/21302/head
Alexander Alekhin 3 years ago
parent a079acc0d9
commit 3e01a387ba
  1. 4
      modules/highgui/CMakeLists.txt

@ -163,6 +163,10 @@ if(APPLE)
add_apple_compiler_options(${the_module})
endif()
if(HAVE_WIN32UI AND HAVE_OPENGL AND OPENGL_LIBRARIES)
ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}")
endif()
if(MSVC AND NOT BUILD_SHARED_LIBS AND BUILD_WITH_STATIC_CRT)
set_target_properties(${the_module} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG")
endif()

Loading…
Cancel
Save