Skip to content

Commit 76d88f1

Browse files
committed
[nrf noup] cmake: Port lib/posix to multi-image
Port lib/posix to be compatible with multi-image. Signed-off-by: Sebastian Bøe <[email protected]>
1 parent 50303b8 commit 76d88f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/posix/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33

44
zephyr_interface_library_named(posix_subsys)
55

6+
set(posix_subsys ${IMAGE}posix_subsys)
7+
68
if(CONFIG_POSIX_API)
7-
target_include_directories(posix_subsys INTERFACE ${ZEPHYR_BASE}/include/posix)
9+
target_include_directories(${posix_subsys} INTERFACE ${ZEPHYR_BASE}/include/posix)
810
endif()
911

1012
zephyr_library()
@@ -23,4 +25,4 @@ zephyr_library_sources_ifdef(CONFIG_PTHREAD_IPC pthread_key.c)
2325
zephyr_library_sources_ifdef(CONFIG_POSIX_MQUEUE mqueue.c)
2426
zephyr_library_sources_ifdef(CONFIG_POSIX_FS fs.c)
2527

26-
zephyr_library_link_libraries(posix_subsys)
28+
zephyr_library_link_libraries(${posix_subsys})

0 commit comments

Comments
 (0)