public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Hlusicka, Jakub (Ceske vysoke uceni technicke v Praze -...)" <ext.Jakub.Hlusicka@skoda-auto.cz>
To: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Troubles with C++20 modules and CMake
Date: Wed, 21 Feb 2024 12:42:08 +0000	[thread overview]
Message-ID: <AM8PR05MB79054A6DA87ABB08449F8BFA81572@AM8PR05MB7905.eurprd05.prod.outlook.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 721 bytes --]

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?

Thank you,
Jakub Hlusička


INTERNAL

             reply	other threads:[~2024-02-21 12:42 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 -...) [this message]
2024-02-21 17:50 ` Jonathan Wakely

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=AM8PR05MB79054A6DA87ABB08449F8BFA81572@AM8PR05MB7905.eurprd05.prod.outlook.com \
    --to=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).