For a good reason, I am attempting to use add_subdirectory()
on both a fork of a repository and the mainstream repository, and both add_library()
a library with the same name.
I will only privately link these two resulting libraries on 2 different other library targets, that will be dlopen()
ed by the main target, but never linked directly.
What is the best way to do this? Is there anything like namespaces that I could run the add_subdirectory()
calls in to not make the library names collide?