You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to cmake-cxxmodulesimport std can be used if Clang 18.1.2 or newer with -stdlib=libc++ is used. And if I'm understanding the NDK documentation correctly libc++ should be enabled by default. I'm meeting all these requirements (Clang version is 19.0.0).
However, I'm getting this error:
CMake Error in CMakeLists.txt:
The "CXX_MODULE_STD" property on the target "myapplication" requires that
the "__CMAKE::CXX23" target exist, but it was not provided by the
toolchain. Reason:
Only `libc++` is supported
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using
According to cmake-cxxmodules
import std
can be used if Clang 18.1.2 or newer with-stdlib=libc++
is used. And if I'm understanding the NDK documentation correctlylibc++
should be enabled by default. I'm meeting all these requirements (Clang version is 19.0.0).However, I'm getting this error:
My
CMakeLists.txt
looks like this:Is the
import std
feature supported? If yes, what am I doing wrong?Beta Was this translation helpful? Give feedback.
All reactions