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

Add with_gpu to manually build with/out gpu #61

Merged
merged 4 commits into from
Jan 4, 2017

Conversation

gangliao
Copy link
Contributor

#60

ARCHIVE DESTINATION "${CMAKE_BINARY_DIR}")
RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin"
LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
Copy link
Contributor

Choose a reason for hiding this comment

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

The ${CMAKE_INSTALL_PREFIX}/ here is unnecessary, it can just be "bin", etc. Not sure why it was ever ${CMAKE_BINARY_DIR}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")

INSTALL(DIRECTORY include/ DESTINATION "${CMAKE_INSTALL_PREFIX}/include")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason to install the entire include/ directory? I believe users should only need the include/ctc.h file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, we only need include/ctc.h. Thanks

@gangliao
Copy link
Contributor Author

gangliao commented Jan 4, 2017

@jaredcasper Thanks a lot.

@jaredcasper jaredcasper merged commit c9beca9 into baidu-research:master Jan 4, 2017
@@ -53,7 +60,7 @@ ELSE()
ENDIF()


IF (CUDA_FOUND)
IF (WITH_GPU)

Copy link

Choose a reason for hiding this comment

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

Should we add a check when WITH_GPU=True and CUDA is not found? @gangliao

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.

3 participants