Compile Error when enable CLR support on Windows

My developing environment is Windows 11, Visual Studio 2022, OpenCV 4.8.0.
After enable CLR:

The compile failed with:
Build started at 12:42…
1>------ Build started: Project: ProjectA, Configuration: Debug x64 ------
1>Source.cpp
1>D:\opencv\build\include\opencv2\flann\heap.h(191,20): error C2039: ‘Mutex’: is not a member of ‘cv’
1>(compiling source file ‘Source.cpp’)
1>D:\opencv\build\include\opencv2\dnn\utils\inference_engine.hpp(13,11):
1>see declaration of ‘cv’
1>D:\opencv\build\include\opencv2\flann\heap.h(188,29):
1>This diagnostic occurred in the compiler generated function ‘cv::Ptr<cvflann::Heap> cvflann::Heap::getPooledInstance(const HashableT &,const int,int)’
1>D:\opencv\build\include\opencv2\flann\heap.h(191,20):
1>the template instantiation context (the oldest one first) is
1> D:\opencv\build\include\opencv2\flann\heap.h(238,2):
1> see reference to class template instantiation ‘cvflann::Heap’ being compiled
1>D:\opencv\build\include\opencv2\flann\heap.h(192,19): error C2039: ‘AutoLock’: is not a member of ‘cv’
1>(compiling source file ‘Source.cpp’)
1>D:\opencv\build\include\opencv2\dnn\utils\inference_engine.hpp(13,11):
1>see declaration of ‘cv’
1>D:\opencv\build\include\opencv2\flann\heap.h(188,29):
1>This diagnostic occurred in the compiler generated function ‘cv::Ptr<cvflann::Heap> cvflann::Heap::getPooledInstance(const HashableT &,const int,int)’
1>Done building project “ProjectA.vcxproj” – FAILED.

The source code is almost empty:
#include <opencv2/opencv.hpp>
#pragma comment(lib, “opencv_world480d.lib”)
int main()
{

}

it’s not meant to happen.
you can’t run opencv code ‘managed’,
it does neither use or work with CLR

please just remove that flag, & forget the idea …