Skip to content
Permalink
Browse files

lib: posix: Use "posix_subsys" as the CMake lib for the subsystem.

Historically, it used to be "PTHREAD", which is no longer true, as
POSIX subsys offers much more functionality than just Pthreads. Use
detailed name, like "posix_subsys", to avoid possible confusion with
ARCH_POSIX-related matters.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
  • Loading branch information...
pfalcon authored and carlescufi committed Aug 7, 2019
1 parent e55c7d7 commit ff6432edad0e9e66562e9932c8d85eb236acdbe6
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/posix/CMakeLists.txt
@@ -1,9 +1,9 @@
# SPDX-License-Identifier: Apache-2.0


add_library(PTHREAD INTERFACE)
add_library(posix_subsys INTERFACE)

target_include_directories(PTHREAD INTERFACE ${ZEPHYR_BASE}/include/posix)
target_include_directories(posix_subsys INTERFACE ${ZEPHYR_BASE}/include/posix)

zephyr_library()
zephyr_library_sources(pthread_common.c)
@@ -21,5 +21,5 @@ zephyr_library_sources_ifdef(CONFIG_PTHREAD_IPC pthread_key.c)
zephyr_library_sources_ifdef(CONFIG_POSIX_MQUEUE mqueue.c)
zephyr_library_sources_ifdef(CONFIG_POSIX_FS fs.c)

zephyr_library_link_libraries(PTHREAD)
target_link_libraries(PTHREAD INTERFACE zephyr_interface)
zephyr_library_link_libraries(posix_subsys)
target_link_libraries(posix_subsys INTERFACE zephyr_interface)

0 comments on commit ff6432e

Please sign in to comment.
You can’t perform that action at this time.