-
Notifications
You must be signed in to change notification settings - Fork 2.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
FetchContent support #1063
Labels
Comments
I found the solutions. FetchContent_Declare(
glog
GIT_REPOSITORY https://github.com/google/glog.git
GIT_TAG v0.6.0
)
FetchContent_GetProperties(glog)
if(NOT glog_POPULATED)
FetchContent_Populate(glog)
add_subdirectory(${glog_SOURCE_DIR} ${glog_BINARY_DIR})
endif() And I will give a PR later. |
|
The issue is not actionable. You can however extend the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I saw the README said glog can be incorporated into custom projects using the CMake command
add_subdirectory
. I tried it like thisWhen building as a submodule of my projects, I found those template codes in xxx.h.in files have not been replaced to generate xxx.h file. How to do things right? Thanks for your help.
The text was updated successfully, but these errors were encountered: