Skip to content

Commit

Permalink
add pthread to lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Sep 21, 2024
1 parent d912aab commit 97d9f7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 97d9f7a

Please sign in to comment.