You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
When 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 issue is not actionable. You can however extend the README with a link to CMake reference documentation that explains how to use FetchContent correctly if you want.
Activity
[-]Would you like to support FetchContent manner for CMake system?[/-][+]FetchContent support[/+]valaxkong commentedon Jan 22, 2024
I found the solutions.
And I will give a PR later.
sergiud commentedon Jan 22, 2024
add_subdirectorymentioned in the docs does not useFetchContent. You need to specify the build directory only for the latter explicitly.sergiud commentedon Jan 22, 2024
The issue is not actionable. You can however extend the
READMEwith a link to CMake reference documentation that explains how to useFetchContentcorrectly if you want.valaxkong commentedon Jan 22, 2024
@sergiud I opened a PR which gives an example to show the usage of FetchContent and add_subdirectory. #1067