add pthread to lib

This commit is contained in:
mpromonet 2024-09-21 23:10:37 +02:00
parent d912aab90c
commit 97d9f7ae4d

View File

@ -43,10 +43,6 @@ message(STATUS "CMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")
message(STATUS "CMAKE_C_COMPILER=${CMAKE_C_COMPILER}")
message(STATUS "CMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}")
#pthread
find_package (Threads)
target_link_libraries (${PROJECT_NAME} Threads::Threads)
# openssl ?
if (WITH_SSL)
@ -91,6 +87,10 @@ if (OpenSSL_FOUND)
set(LIBRARIES ${LIBRARIES} ${OPENSSL_LIBRARIES})
endif ()
#pthread
find_package (Threads)
target_link_libraries (libv4l2rtspserver PUBLIC Threads::Threads)
# LOG4CPP
if (LOG4CPP)
find_library(LOG4CPP_LIBRARY NAMES log4cpp)