Add pthread library to linker list when needed
This commit is contained in:
parent
a66751870f
commit
bdb6c3219a
@ -376,6 +376,10 @@ if (UNWIND_LIBRARY)
|
||||
target_link_libraries (glog PUBLIC ${UNWIND_LIBRARY})
|
||||
endif (UNWIND_LIBRARY)
|
||||
|
||||
if (HAVE_PTHREAD)
|
||||
target_link_libraries (glog PUBLIC ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif (HAVE_PTHREAD)
|
||||
|
||||
if (WIN32 AND HAVE_SNPRINTF)
|
||||
set_property (SOURCE src/windows/port.cc APPEND PROPERTY COMPILE_DEFINITIONS
|
||||
HAVE_SNPRINTF)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user