Skip to content

Detect pico project using pico_sdk_init() in CMakeLists.txt instead of pico_sdk_import.cmake existence #177

Closed
@fire332

Description

@fire332

Can the detection of a pico project be changed from checking for the existence of a pico_sdk_import.cmake in the workspace directory to checking for a pico_sdk_init() in the root CMakeLists.txt? In theory, it should be equally robust, but would allow people to move pico_sdk_import.cmake somewhere else. The rationale is that I would prefer to keep all my .cmake files in a cmake subdirectory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions