Skip to content

Commit

Permalink
Added explicit linking to the threads library for the applications.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Dec 10, 2023
1 parent 704093a commit d3094fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if (NOT CC_MQTT5_CLIENT_DEFAULT_LIB)
return ()
endif ()

find_package (Threads REQUIRED)
find_package (Boost REQUIRED COMPONENTS system program_options)

set (EXTRA_BOOST_TARGETS)
Expand Down
2 changes: 1 addition & 1 deletion client/app/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set (src
)

add_library(${COMMON_APPS_LIB} STATIC ${src})
target_link_libraries(${COMMON_APPS_LIB} PUBLIC cc::cc_mqtt5_client Boost::system Boost::program_options ${EXTRA_BOOST_TARGETS})
target_link_libraries(${COMMON_APPS_LIB} PUBLIC cc::cc_mqtt5_client Boost::system Boost::program_options ${EXTRA_BOOST_TARGETS} ${CMAKE_THREAD_LIBS_INIT})
target_include_directories(
${COMMON_APPS_LIB} BEFORE
PUBLIC
Expand Down

0 comments on commit d3094fd

Please sign in to comment.