Commit 8bd2e981 authored by Alexander Alekhin's avatar Alexander Alekhin Committed by Maksim Shabunin

cmake: don't add vs_version.rc for static modules (ts)

parent 638a01a0
......@@ -802,7 +802,9 @@ macro(_ocv_create_module)
endforeach()
endif()
if(WIN32 AND BUILD_SHARED_LIBS AND NOT OPENCV_VS_VERSIONINFO_SKIP)
if(WIN32
AND (BUILD_SHARED_LIBS AND NOT "x${OPENCV_MODULE_TYPE}" STREQUAL "xSTATIC")
AND NOT OPENCV_VS_VERSIONINFO_SKIP)
if(DEFINED OPENCV_VS_VERSIONINFO_FILE)
set(_VS_VERSION_FILE "${OPENCV_VS_VERSIONINFO_FILE}")
elseif(DEFINED OPENCV_VS_VERSIONINFO_${the_module}_FILE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment