C++ modules do not work in try_compile()
CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API
is not currently forwarded through try_compile()
. If the code is modified to do so, enable_language()
complains that CMAKE_EXPERIMENTAL_CXX_SCANDEP_SOURCE
is missing.