Skip to content

Commit 395bae6

Browse files
[nrf fromtree] net: silence no sources cmake warning
add `ALLOW_EMPTY TRUE` property to silence cmake warnings in case when no sources are added to subsys__net library Signed-off-by: Maciej Baczmanski <[email protected]> (cherry picked from commit ca09d1d)
1 parent 8d6fc59 commit 395bae6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/net/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-License-Identifier: Apache-2.0
22

33
zephyr_library()
4+
zephyr_library_property(ALLOW_EMPTY TRUE)
45
zephyr_library_sources_ifdef(CONFIG_NET_HOSTNAME_ENABLE hostname.c)
56

67
if(CONFIG_NETWORKING)

0 commit comments

Comments
 (0)