I tried the cmake_example project provided by the pybind11 docs https://github.com/pybind/cmake_example. Running the cmake file worked and it created a folder named cmake_example.dir
in the build/x 64-Debug/CMakeFiles
folder. However that folder only contains another one named src
and nothing else.
When trying to run the test file test_basic.py
it gives me an error saying it cant find the module cmake_example. Probably because there wasn't any .pyd file created no?
Why is that the case and how can I fix this?
EDIT: The .pyd file exists now in the output directory (I just had to build after generating the cache), however the python test still cant import the module saying ModuleNotFoundError: No module named cmake_example