-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
ARCHIVE DESTINATION "${CMAKE_BINARY_DIR}") | ||
RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" | ||
LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" | ||
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib") |
There was a problem hiding this comment.
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}
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
@jaredcasper Thanks a lot. |
@@ -53,7 +60,7 @@ ELSE() | |||
ENDIF() | |||
|
|||
|
|||
IF (CUDA_FOUND) | |||
IF (WITH_GPU) | |||
|
There was a problem hiding this comment.
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
#60