Dll by cmake with DllExport does not work in another application

Богдан Іваночко 1 Reputation point
2021-03-02T17:20:12.02+00:00

I want to create dll of my c# project with DllExport by cmake for use in another app(java), but I collided wit problem, app with the dll that I created by VS2019, works Ok, but with the dll that was created by cmake (using commands: "cmake . -B build/ -A x64" and "cmake --build build/) does not work (just crash). Could anybody help me?

CMakeList.txt my cmake file for main project
CMakeList1.txt my cmake file for subproject73453-cmakelists1.txt73446-cmakelists.txt

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,091 questions
{count} votes