Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependent libraries rebuilt #543

Open
ptoharia opened this issue Mar 7, 2017 · 1 comment
Open

Dependent libraries rebuilt #543

ptoharia opened this issue Mar 7, 2017 · 1 comment

Comments

@ptoharia
Copy link
Contributor

ptoharia commented Mar 7, 2017

Hi,
I am experiencing the following "issue". In the same project, using CMake/common, I have two libraries lib1 and lib2, and lib2 depends on lib1. Each library has its own directory with its own CMakeLists.txt. Now, when touching the lib1/CMakeLists.txt, both libraries rebuilt/relinked as expected, but when touching lib2/CMakeLists.txt, again both libraries get rebuilt, when only lib2 should be affected. I have tried in a small project with and without CMake/common and this only happens with the latter.

Could it be related to version.{h,cpp} being regenerated when touching any of the CMakeLists.txt files?

Any ideas on how to avoid this?
Thanks!

@ptoharia
Copy link
Contributor Author

ptoharia commented Mar 7, 2017

I've found a way using NAME_NAMESPACE and NAME_INCLUDENAME to avoid this by having different version.h and api.h files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant