Link error sgemm_ in cmake windows 10 amd64

Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29912 for x64

last 2 lines in CMakeError.log are:

CheckFunctionExists.obj : error LNK2019: unresolved external symbol sgemm_ referenced in function main [C:\chuck\opencv\opencv\build\CMakeFiles\CMakeTmp\cmTC_bec66.vcxproj]
C:\chuck\opencv\opencv\build\CMakeFiles\CMakeTmp\Debug\cmTC_bec66.exe : fatal error LNK1120: 1 unresolved externals [C:\chuck\opencv\opencv\build\CMakeFiles\CMakeTmp\cmTC_bec66.vcxproj]

unless cmake configure failed, this might be irrelevant

(it’s part of checking the compiler, and they have to break some eggs to make a cake)

yes it failed. no .lib files created. looking earlier in .log there’s a line
Cannot open include file: ‘pthread.h’: No such file or directory [C:\chuck\opencv\opencv\build\CMakeFiles\CMakeTmp\cmTC_4e38f.vcxproj]

and so i found pthread.h from ftp site along with .dll and .lib and re_ran script

and i copied them in all sub_directories cmake may look for them

this time no cmakeerror.log nor cmakeoutput.log were created. last lines of cmake:

cmake error at cmake/opencvmodule.cmake:340 (message):
duplicate modules names has been found
cmake/opencvmodule.cmake:358 (_assert_uniqueness)
modules/cmakelists.txt:7 (ocv_glob_modules)

configring incomplete, errors occurred