Skip to content

Commit

Permalink
cmake: Search zephyrbt_user.h inside include folder
Browse files Browse the repository at this point in the history
When cmake search for the zephyrbt_user.h it founds inside the tutorial
directory. This enforce to search inside of <project>/include directory
only.

Signed-off-by: Gerson Fernando Budke <[email protected]>
  • Loading branch information
nandojve authored and otavio committed Nov 19, 2024
1 parent 72221ad commit 6165cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/zephyrbt-from-behaviourtreecpp-xml.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function(zephyrbt_define_from_behaviourtreecpp_xml
set(zephyrbt_data_file "${output_src}/${zephyrbt_name}_data.c")
set(zephyrbt_stub_file "${output_src}/${zephyrbt_name}_stub.c")

file(GLOB_RECURSE zephyrbt_user_include zephyrbt_user.h)
file(GLOB_RECURSE zephyrbt_user_include ${CMAKE_CURRENT_SOURCE_DIR}/include/zephyrbt_user.h)
string(LENGTH "${zephyrbt_user_include}" zephyrbt_user_include_valid)

if(${zephyrbt_user_include_valid} GREATER 0)
Expand Down

0 comments on commit 6165cee

Please sign in to comment.