CMake improvements (#201)

- Update CMake to parity with Box2D. Removed BOX3D_AVX2 due to runtime
dispatch.
- CI fixes for ubuntu
- Doxygen refresh from Box2D
This commit is contained in:
Erin Catto 2026-10-20 15:15:20 -07:00 • committed by GitHub
commit f36d061ba2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 724 additions and 251 deletions

View file

@ -169,12 +169,27 @@ static void b3SetCurrentThreadName( const char* name )
HMODULE kernel = GetModuleHandleW( L"kernel32.dll" );
if ( kernel != NULL )
{
// MSVC /Wall warns C4191 on every FARPROC function-pointer cast.
// This is the intended use of GetProcAddress, so suppress locally.
// MSVC /Wall warns C4191 and GCC/Clang -Wcast-function-type
// warns on every FARPROC function-pointer cast. This is the
// intended use of GetProcAddress, so suppress locally.
#if defined( __clang__ )
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-function-type"
#elif defined( _MSC_VER )
#pragma warning( push )
#pragma warning( disable : 4191 )
#elif defined( __GNUC__ )
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-function-type"
#endif
pfn = (b3SetThreadDescriptionFn)GetProcAddress( kernel, "SetThreadDescription" );
#if defined( __clang__ )
#pragma clang diagnostic pop
#elif defined( _MSC_VER )
#pragma warning( pop )
#elif defined( __GNUC__ )
#pragma GCC diagnostic pop
#endif
}
resolved = 1;
}