Skip to content

When using only C++20 modules, CMake project generator creates invalid CMakeLists #3003

@DatCaptainHorse

Description

@DatCaptainHorse

Xmake Version

2.7.2

Operating System Version and Architecture

Windows 11 Pro 22H2 (22621.674)

Describe Bug

In a project that uses only C++20 modules, the CMake project generator creates CMakeLists.txt with empty target_sources, which results in No SOURCES given to targe: XYZ errors.

image

Expected Behavior

I'm expecting CMake project generator to fill target_sources with source .mpp files. This allows for IDE to use the CMakeLists file for proper syntax highlighting and other features.

Project Configuration

No response

Additional Information and Error Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions