Nested ExternalProject_Add with Common Dependencies

I am trying to use ExternalProject_Add to automate the installation of dependencies of a medium C project. Everything went well until I had to install a library that uses ExternalProject_Add to install one of its dependencies, which could also be used by my own project. It would be nice if I could avoid the need to rebuild this library, but instead use the already installed version.
Is there a good way to do this? Can I transfer ExternalProject to download material only if some condition, for example, an already installed library, is not met?

+1
build-automation cmake
source share

No one has answered this question yet.

See similar questions:

7
Avoiding Additional ExternalProject Downloads

or similar:

2240
How to create an executable dependency JAR using Maven?
12
What is INSTALL_DIR useful for the ExternalProject_Add command?
7
Avoiding Additional ExternalProject Downloads
5
How to tell CMAKE to load some necessary header files (more precisely GLM-math library) WITHOUT TRYING TO REDUCE THEM?
5
CMake: external project dependencies
3
Common CMake Project Project Dependencies
2
Depending on the purpose of the INSTALL external CMake project
one
prevent code compilation if an external project cannot build and install correctly
0
external cmake project: allow download or user-defined path
0
CMAKE: Create only one directory of the loaded external project

All Articles