trouble with PUBLIC_HEADER

I’m trying to build an xcframework for iOS and macOS for oneTBB. I’m having trouble getting the generated frameworks to have headers.

I tried adding PUBLIC_HEADER "../include/oneapi/tbb.h" but CMake doesn’t stick the file in the framework, and also doesn’t even print a warning.

Reproducing on macOS with:

mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DTBB_BUILD_APPLE_FRAMEWORKS=On
make -j 12
find ./appleclang_15.0_cxx11_64_release/tbb.framework -name "*.h"