* Troubles with C++20 modules and CMake
@ 2024-02-21 12:42 Hlusicka, Jakub (Ceske vysoke uceni technicke v Praze -...)
2024-02-21 17:50 ` Jonathan Wakely
0 siblings, 1 reply; 2+ messages in thread
From: Hlusicka, Jakub (Ceske vysoke uceni technicke v Praze -...) @ 2024-02-21 12:42 UTC (permalink / raw)
To: gcc-help
[-- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Troubles with C++20 modules and CMake
2024-02-21 12:42 Troubles with C++20 modules and CMake Hlusicka, Jakub (Ceske vysoke uceni technicke v Praze -...)
@ 2024-02-21 17:50 ` Jonathan Wakely
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2024-02-21 17:50 UTC (permalink / raw)
To: Hlusicka, Jakub (Ceske vysoke uceni technicke v Praze -...); +Cc: gcc-help
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-21 17:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-21 12:42 Troubles with C++20 modules and CMake Hlusicka, Jakub (Ceske vysoke uceni technicke v Praze -...)
2024-02-21 17:50 ` Jonathan Wakely
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).