From 688750c88d2fb7604e1e2f878c094b358a835185 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 7 Aug 2019 16:42:25 +0300 Subject: [PATCH] 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 --- lib/posix/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/posix/CMakeLists.txt b/lib/posix/CMakeLists.txt index a83dff9296050..19fede849bfc9 100644 --- a/lib/posix/CMakeLists.txt +++ b/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)