What is happening here, and how can I make the compiler resolve the include directory?
message(STATUS "Assimp source directory: ${assimp_SOURCE_DIR}")
outputs:
1> [CMake] -- Assimp source directory: /home/<user>/.vs/CMakeEngineDemo/out/build/linux-emscripten/_deps/assimp-src
If I navigate to there (WSL2 directory) I find /include/assimp filled with header files.
target_include_directories(Engine PUBLIC
...
"${assimp_SOURCE_DIR}/include"
...
Yet if I try to #include <assimp/... my compiler can’t resolve anything. I’m not sure but it seems that if I try to compile it it actually finds the header files.
I think what is happening is that the project is located in a windows folder with the target system being WSL: Ubuntu (Configured for emscripten). The project seem to get mirrored between a windows folder and a wsl2 ubuntu folder, and I guess the compiler only sees the windows folder and not the ubuntu build folders.
edit: If I copy the include directory manually to my windows folder then the compiler will recognize it, but this will also propagate this new addition back to the wsl2 folder. There must be a better solution to this problem.