Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import 3rd party target in CMake #2343

Merged
merged 2 commits into from
Jun 1, 2017
Merged

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generic.cmake needs to be able to refer to 3rd party packages
2 participants