Related: #192
Minimal structure:
.
├── CMakeLists.txt
├── get_cpm.cmake
├── libA
│ └── CMakeLists.txt
└── libB
└── CMakeLists.txt
Here, both libA and libB use the same get_cpm.cmake to download their third-party dependencies.
The symptoms are the same as in #192. The solution is the same as well, we just need to relax the conditions for the extra include(FetchContent).