Skip to content

Unknown CMake command "add_subdirectory_ifdef". #4

@AlienSarlak

Description

@AlienSarlak

It seems that the structure of the newer version of Zephyr has changed, making it impossible to compile this sample. While attempting to build, I encountered the following error:

CMake Error at drivers/CMakeLists.txt:4 (add_subdirectory_ifdef):
Unknown CMake command "add_subdirectory_ifdef".

This indicates that the add_subdirectory_ifdef CMake function cannot be found.

I am using:
cmake version 3.22.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions