Skip to content

A small CMake demo project to help getting started using Flux with C++20 modules

Notifications You must be signed in to change notification settings

tcbrindle/flux_cmake_modules_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Flux CMake starter project

This is a small CMake project to demonstrate the use of the Flux library with C++20 modules.

It uses CMake's FetchContent to automatically download the latest revision of Flux from the main branch on Github.

Note that C++20 modules support in compilers, build systems and the Flux library itself is very new, and you may run into bugs as a result. If you'd rather use "traditional" header files instead, you can find an equivalent starter project in this repository.

Requirements

  • CMake v3.28 or later, using the Ninja or Visual Studio 2022 generators
  • Ninja v1.11 or later (if using the Ninja generator)
  • Clang 16 or later

As of January 2024, Visual Studio 17.8 can compile the Flux module, but any non-trivial usage is very likely to run into compiler bugs. It's strongly recommended to stick to using Flux via header files with MSVC for now.

GCC 13 and below are not supported by CMake for building C++20 modules. The latest development version (which will become GCC 14) is reported to work, but has not been tested with this project.

About

A small CMake demo project to help getting started using Flux with C++20 modules

Resources

Stars

Watchers

Forks