You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I think the key point to solve this problem is to add set(ZEPHYR_EXTRA_MODULES "${CMAKE_SOURCE_DIR}/modules") (modify "${CMAKE_SOURCE_DIR}/modules" to your module path)
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
The text was updated successfully, but these errors were encountered: