commit | fd81024e804b9b874cfe86e3781680db22f8c552 | [log] [tgz] |
---|---|---|
author | Brad King <brad.king@kitware.com> | Tue Oct 10 11:14:50 2023 -0400 |
committer | Brad King <brad.king@kitware.com> | Tue Oct 10 11:25:21 2023 -0400 |
tree | 777270e74de30ca3ba7147343528593a369cfac6 | |
parent | 308d687018a8f63936a3d850ef487e9194e08f31 [diff] |
cxxmodules: Honor CMAKE_CXX_SCAN_FOR_MODULES in try_compile Under CMP0155's NEW behavior, projects that explicitly enable C++20 support with `set(CMAKE_CXX_STANDARD 20)` may also explicitly disable scanning with `set(CMAKE_CXX_SCAN_FOR_MODULES OFF)`. We already propagate `CMAKE_CXX_STANDARD` into `try_compile` test projects, so propagate `CMAKE_CXX_SCAN_FOR_MODULES` too. Fixes: #25313