CMAKE error while building OPENCV4.5

I am facing following error while using cmake to generate the opencv solution.

OS : Windows 10
Opencv + contrib : 4.5
VS 2019
CMAKE 3.25

CMake Error at C:/Program Files/CMake/share/cmake-3.25/Modules/FindOpenMP.cmake:420 (try_compile):
  Cannot copy output executable


  to destination specified by COPY_FILE:


  Recorded try_compile output location doesn't exist:


Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.25/Modules/FindOpenMP.cmake:560 (_OPENMP_GET_SPEC_DATE)
  C:/Program Files/CMake/share/cmake-3.25/Modules/FindBLAS.cmake:768 (find_package)
  C:/Program Files/CMake/share/cmake-3.25/Modules/FindLAPACK.cmake:247 (find_package)
  C:/Program Files/CMake/share/cmake-3.25/Modules/FindLAPACK.cmake:283 (_lapack_find_dependency)
1 Like


I found that by googling for the first couple of lines of the error output.

that is not a release yet, just a release candidate.

please note that forward ticks (´´´) do not work to style code. you need to use backticks (```) on both ends.

1 Like