Skip to content

Commit 8bd2e98

Browse files
alalekmshabunin
authored andcommitted
cmake: don't add vs_version.rc for static modules (ts)
1 parent 638a01a commit 8bd2e98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/OpenCVModule.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,9 @@ macro(_ocv_create_module)
802802
endforeach()
803803
endif()
804804

805-
if(WIN32 AND BUILD_SHARED_LIBS AND NOT OPENCV_VS_VERSIONINFO_SKIP)
805+
if(WIN32
806+
AND (BUILD_SHARED_LIBS AND NOT "x${OPENCV_MODULE_TYPE}" STREQUAL "xSTATIC")
807+
AND NOT OPENCV_VS_VERSIONINFO_SKIP)
806808
if(DEFINED OPENCV_VS_VERSIONINFO_FILE)
807809
set(_VS_VERSION_FILE "${OPENCV_VS_VERSIONINFO_FILE}")
808810
elseif(DEFINED OPENCV_VS_VERSIONINFO_${the_module}_FILE)

0 commit comments

Comments
 (0)