What I normally do is to build the engine without any flags that might be involved with debugging support and any subsystems that I have no need. For example, -DCMAKE_BUILD_TYPE="Release"
, -DURHO3D_PROFILING=0
, -DURHO3D_NETWORK=0
and so on. I don’t know specifically about VS, but you can try passing the arguments into the batch file, like so
cmake_vs2017.bat -DCMAKE_BUILD_TYPE="Release" -DURHO3D_PROFILING=0 -DURHO3D_SAFE_LUA=0 ...
And build the generated project again. Debug mode in VS is just a fancy name for putting the debug macros in your code (NDEBUG
, for example), so you can also turn off the definition when invoking CMake (-DNDEBUG=0
), and build the project without using the Release mode. Also you might be interested in the optimization flags, which can be passed to “EXTRA_CXXFLAGS” (here. Example: DEXTRA_CXXFLAGS="/O2"