Skip to content

Commit

Permalink
static pthread link on unix try 31
Browse files Browse the repository at this point in the history
  • Loading branch information
gitting-around committed Oct 18, 2023
1 parent 5a60089 commit e54cb1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rabbitmq-fmu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ add_library(rabbitmq SHARED ${C_FILES} ${CPP_FILES})
if(UNIX AND NOT APPLE)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(rabbitmq XercesC::XercesC rabbitmq-static tz rabbitmq-core Threads::Threads -static)
target_link_libraries(rabbitmq XercesC::XercesC rabbitmq-static tz rabbitmq-core Threads::Threads)
elseif(APPLE)
target_link_libraries(rabbitmq XercesC::XercesC rabbitmq-static tz rabbitmq-core)
else()
Expand Down

0 comments on commit e54cb1a

Please sign in to comment.