Cannot open python312.lib for compiling a basic CMakeLists project on windows for pybind11
I am trying to get the example case to compile with CMake on windows but there is a constant linker error when I try to use CMake.
The following is the CMakeLists.txt
Cmake + pybind11 + miniconda Python libraries not found error
I’m trying to build a library using cmake with pybind11.
everything works perfectly without pybind. But after putting pybind in my project I get an error.
The same code works perfectly for my friend.
The console outputs this error after I try to build the project: