A CMake module allowing project authors to have dependent projects downloaded and set up during the dependent project's configuration phase.
Questions tagged [fetchcontent]
33 questions
0
votes
1 answer
In cmake, how to add dependency for can-utils using FetchContent?
I am still learning cmake and am struggling with a dependency I am trying to set up.
I discovered FetchContent while setting up googletest, and that worked fine so I am trying to do the same thing for a new dependency I am trying to configure for…

KevbotInControl
- 11
- 2
0
votes
0 answers
Prevent FetchContent from being re-configured if already configured
I have several FetchContents Github repos in my CMakeLists.txt and they get reconfigured by CMake every time I modify my CMakeLists.txt:
FetchContent_Declare(fmt GIT_REPOSITORY…

afp_2008
- 1,940
- 1
- 19
- 46
-1
votes
1 answer
CMake FetchContent and CMakePresets conflict
I am working on a C++ project using CMake, and I manage third-party dependencies via FetchContent. I ran into an issue when trying to deduplicate the sub-builds generated by FetchContent for different build configurations.
Below is a minimal working…

yah_nosh
- 155
- 1
- 8