Skip to content

Conversation

@gangliao
Copy link
Contributor

@gangliao gangliao commented Jun 1, 2017

fix #2327


if(NOT APPLE)
find_package(Threads REQUIRED)
link_libraries(${CMAKE_THREAD_LIBS_INIT})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default any target will link thread

@@ -1,5 +1,5 @@
cc_library(place SRCS place.cc)
cc_test(place_test SRCS place_test.cc DEPS place)
cc_test(place_test SRCS place_test.cc DEPS place glog gflags)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

glog gflags is used to test this feature

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the right way -- to require the specification of glog and gflags explicitly -- and could be the default way.

@gangliao gangliao requested a review from wangkuiyi June 1, 2017 06:24
@gangliao gangliao merged commit 2afe08e into PaddlePaddle:develop Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants