cmake: replace PROJECT_SOURCE_DIR with ZEPHYR_BASE
Both variables were used (with the same value) interchangeably throughout CMake files and per the discussion in GH issue, ZEPHYR_BASE is preferred. Also add a comment with explanation of one vs. the other. Tested by building hello_world for several boards ensuring no errors. Fixes #7173. Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
This commit is contained in:
parent
7688f49065
commit
3c1a78ea0d
76 changed files with 108 additions and 100 deletions
|
@ -1,5 +1,5 @@
|
|||
zephyr_library()
|
||||
zephyr_library_include_directories(${PROJECT_SOURCE_DIR}/drivers)
|
||||
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)
|
||||
|
||||
zephyr_cc_option(-march=pentium)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue