Hi I am late to the conversation, but I was running into this issue as well. The way I solved it was removing the module name from the .uproject or .uplugin file (in my case, and in the ops case it was in a .uplugin file). After this unreal correctly links with the third-party library and does not complain about the “is not a C++ module” anymore.
Hope this helps anyone!