CMake install target on Windows does not install libs into correct subdirs #25697
Closed
4 tasks done
Labels
question (invalid tracker)
ask questions and other "no action" items here: https://forum.opencv.org
System Information
OpenCV version: 4.9.0
Operating System / Platform: Windows (11)
Compiler & compiler version: MSVC17 (Visual Studio 2022)
Detailed description
I'm building a custom and quite minimal OpenCV from source using CMake. The build runs through but the resulting installed package could not be found by CMake find_package(). Debugging into it I noticed it is installed into the wrong folders.
The resulting installed dir contains:
and in
staticlib
there is:According to the CMake finders and examples in the web the directory is supposed to be
x64\vc17\staticlib
.As a result, CMake finders cannot find the package, which I consider a serious issue.
Steps to reproduce
Here's my CMake parameters:
Build from source on Windows, observe subdir.
Issue submission checklist
The text was updated successfully, but these errors were encountered: