PR 276134 was not accepted because the problem was allegedly caused by a bug in CMake. I ran into this problem while building devel/llvm15 from HEAD. I checked http://gitlab.kitware.com/cmake/cmake/-/issues/ but it seems there are too many open problems. Therefore I'm hesitant to report another one. But how to cope with this problem on FreeBSD?