Why is cmake trying to use libstdc++ for C++ modules on android?

set(ANDROID_PLATFORM 30)
set(ANDROID_ABI arm64-v8a)
set(ANDROID_STL c++_static)
include(
    /home/mccakit/dev/android-clt/ndk/29.0.13599879/build/cmake/android.toolchain.cmake
)
add_compile_options(-nostdinc++ -nostdlib++ -cxx-isystem /home/mccakit/dev/libcxx/android-arm64/include/c++/v1)
add_link_options(-L/home/mccakit/dev/libcxx/android-arm64/lib)
CMake Error in apps/CMakeLists.txt:
  The "CXX_MODULE_STD" property on the target "main" requires that the
  "__CMAKE::CXX23" target exist, but it was not provided by the toolchain.
  Reason:
    `libstdc++.modules.json` resource does not exist

Looks like you are using “import std”. Not sure I see how that is being turned on by looking at the cmake you posted. The not finding libstdc++.modules.json is a clang issue. We are working on a way to force the location of this when the compiler can’t tell us where that file is located.