Skip to content

Commit

Permalink
net: l2_wifi_if_conn: Fix cmake warning
Browse files Browse the repository at this point in the history
Fixes a cmake warning being emitted when the Kconfig is not
enabled by moving the check up a directory.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
  • Loading branch information
nordicjm committed Jun 26, 2023
1 parent e83eaec commit a72643c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion subsys/net/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
#

add_subdirectory(lib)
add_subdirectory(l2_wifi_if_conn)
add_subdirectory_ifdef(CONFIG_L2_WIFI_CONNECTIVITY l2_wifi_if_conn)
2 changes: 1 addition & 1 deletion subsys/net/l2_wifi_if_conn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

zephyr_library()
zephyr_library_sources_ifdef(CONFIG_L2_WIFI_CONNECTIVITY l2_wifi_conn.c)
zephyr_library_sources(l2_wifi_conn.c)

zephyr_library_include_directories(
${ZEPHYR_BASE}/include
Expand Down

0 comments on commit a72643c

Please sign in to comment.