projects
/
platform
/
upstream
/
glog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a667518
)
Add pthread library to linker list when needed
author
Nate Rosenblum
<flander@gmail.com>
Sun, 6 Sep 2015 15:09:29 +0000
(08:09 -0700)
committer
Nate Rosenblum
<flander@gmail.com>
Sun, 6 Sep 2015 15:09:36 +0000
(08:09 -0700)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index ecb1355db4645a8ff25703ea989f69c1072b5c2d..d0780c45d780554df0af5e890687153d073d41ba 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-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)