File tree Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -266,11 +266,6 @@ jobs:
266
266
cp -v "C:\VCPKG\INSTALLED\x86-windows\lib\manual-link\gtest_main*" "C:\VCPKG\INSTALLED\x86-windows\lib\"
267
267
cp -v "C:\VCPKG\INSTALLED\x86-windows\lib\manual-link\gtest_main*" "C:\VCPKG\INSTALLED\x86-windows\lib\"
268
268
269
- # Install pthread
270
- vcpkg install pthread
271
- cp -v "C:\VCPKG\INSTALLED\x86-windows\lib\pthreadVC3.lib" "C:\VCPKG\INSTALLED\x86-windows\lib\pthread.lib"
272
- cp -v "C:\VCPKG\INSTALLED\x86-windows\bin\pthreadVC3.dll" "C:\VCPKG\INSTALLED\x86-windows\bin\pthread.dll"
273
-
274
269
# Install boost headers/libraries
275
270
vcpkg install boost-optional
276
271
vcpkg install boost-algorithm
Original file line number Diff line number Diff line change @@ -32,13 +32,15 @@ message(STATUS "librdkafka library directory: ${LIBRDKAFKA_LIBRARY_DIR}")
32
32
33
33
34
34
#---------------------------
35
- # Check pthread library
35
+ # Check pthread library (for linux only)
36
36
#---------------------------
37
- find_library (PTHREAD_LIB pthread )
38
- if (PTHREAD_LIB )
39
- message (STATUS "pthread library: ${PTHREAD_LIB} " )
40
- else ()
41
- message (FATAL_ERROR "Could not find library: pthread!" )
37
+ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" )
38
+ find_library (PTHREAD_LIB pthread )
39
+ if (PTHREAD_LIB )
40
+ message (STATUS "pthread library: ${PTHREAD_LIB} " )
41
+ else ()
42
+ message (FATAL_ERROR "Could not find library: pthread!" )
43
+ endif ()
42
44
endif ()
43
45
44
46
Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ target_link_libraries(${PROJECT_NAME} INTERFACE rdkafka)
14
14
#---------------------------
15
15
# pthread
16
16
#---------------------------
17
- target_link_libraries (${PROJECT_NAME} INTERFACE pthread )
17
+ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" )
18
+ target_link_libraries (${PROJECT_NAME} INTERFACE pthread )
19
+ endif ()
18
20
19
21
#---------------------------
20
22
# sasl (if required)
You can’t perform that action at this time.
0 commit comments