Skip to content

[BUG] cmake-based build should not modify CMAKE_CURRENT_SOURCE_DIR #14952

Open
@yamt

Description

@yamt

Description / Steps to reproduce the issue

it seems that cmake-based build sometimes modifies files under CMAKE_CURRENT_SOURCE_DIR.
eg. it expands littlefs source tree to fs/littlefs/littlefs.
it should be done under CMAKE_BINARY_DIR instead.
we should treat CMAKE_CURRENT_SOURCE_DIR read-only.

On which OS does this issue occur?

[OS: Mac]

What is the version of your OS?

macOS 14.7

NuttX Version

master

Issue Architecture

[Arch: all]

Issue Area

[Area: Build System]

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: allIssues that apply to all architecturesArea: Build systemOS: MacIssues related to MacOS (building system, etc)Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions