Skip to content

Commit 49c525b

Browse files
authored
Add the pthread linkage while verifying the build - Add workflow input parameter commit ref [HZ-5191] (hazelcast#1348)
Added the pthread linkage while verifying the build. 32-bit linux builds were failing due to this. Also added workflow input parameter commit ref. Example green build at here: - [32 bit linux](https://github.com/hazelcast/hazelcast-cpp-client/actions/runs/18982348106)
1 parent 279cac0 commit 49c525b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ if (NOT TARGET hazelcast-cpp-client)
2525
message(STATUS "hazelcast-cpp-client is not a valid target, using find_package to find it.")
2626
find_package(hazelcast-cpp-client REQUIRED)
2727
link_libraries(hazelcast-cpp-client::hazelcast-cpp-client) # TODO find a better way to do this
28+
29+
# Required for 32-bit builds on Linux
30+
link_libraries(pthread)
2831
else()
2932
link_libraries(hazelcast-cpp-client) # TODO find a better way to do this
3033
endif()

0 commit comments

Comments
 (0)