From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: "Hlusicka,
Jakub (Ceske vysoke uceni technicke v Praze -...)"
<ext.Jakub.Hlusicka@skoda-auto.cz>
Cc: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: Troubles with C++20 modules and CMake
Date: Wed, 21 Feb 2024 17:50:03 +0000 [thread overview]
Message-ID: <CAH6eHdTrVVZQU1oxEsSiZcw670SpWzWtKbNxhbLwRcwVmBvZJw@mail.gmail.com> (raw)
In-Reply-To: <AM8PR05MB79054A6DA87ABB08449F8BFA81572@AM8PR05MB7905.eurprd05.prod.outlook.com>
On Wed, 21 Feb 2024 at 12:43, Hlusicka, Jakub (Ceske vysoke uceni
technicke v Praze -...) via Gcc-help <gcc-help@gcc.gnu.org> wrote:
>
> Hello, I am trying to use C++20 modules with CMake and GCC, but I cannot seem to be able to get it to work. I am getting the following error message when running CMake to generate build files:
>
> CMake Error in core/CMakeLists.txt:
> The target named "core" has C++ sources that may use modules, but the
> compiler does not provide a way to discover the import graph dependencies.
> See the cmake-cxxmodules(7) manual for details. Use the
> CMAKE_CXX_SCAN_FOR_MODULES variable to enable or disable scanning.
>
> The versions of the software I am using:
> GCC version: 13.2.1
> CMake version: 3.28.3
>
> Is this feature currently not supported, or am I doing something wrong?
As it says at https://cmake.org/cmake/help/latest/manual/cmake-cxxmodules.7.html#compiler-support
you need GCC 14 (which won't be released for a few months) to use
CMake's modules support.
prev parent reply other threads:[~2024-02-21 17:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 12:42 Hlusicka, Jakub (Ceske vysoke uceni technicke v Praze -...)
2024-02-21 17:50 ` Jonathan Wakely [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAH6eHdTrVVZQU1oxEsSiZcw670SpWzWtKbNxhbLwRcwVmBvZJw@mail.gmail.com \
--to=jwakely.gcc@gmail.com \
--cc=ext.Jakub.Hlusicka@skoda-auto.cz \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).