cmake: don't generate dllmain for cudev module
authorAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 19 Nov 2018 16:11:52 +0000 (19:11 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 19 Nov 2018 16:11:52 +0000 (19:11 +0300)
cmake/OpenCVModule.cmake

index 495787f..3c45d77 100644 (file)
@@ -909,7 +909,11 @@ macro(_ocv_create_module)
       source_group("Src" FILES "${_VS_VERSION_FILE}")
     endif()
   endif()
-  if(WIN32 AND NOT ("${the_module}" STREQUAL "opencv_core" OR "${the_module}" STREQUAL "opencv_world")
+  if(WIN32 AND NOT (
+          "${the_module}" STREQUAL "opencv_core" OR
+          "${the_module}" STREQUAL "opencv_world" OR
+          "${the_module}" STREQUAL "opencv_cudev"
+      )
       AND (BUILD_SHARED_LIBS AND NOT "x${OPENCV_MODULE_TYPE}" STREQUAL "xSTATIC")
       AND NOT OPENCV_SKIP_DLLMAIN_GENERATION
   )