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

Rename CMake target: example -> basic_example. #64

Merged
merged 1 commit into from
Nov 18, 2020

Conversation

supersaiyanmode
Copy link
Contributor

Gist: Try to avoid super generic target names since CMake puts it all at a global namespace.

Personal context: I currently have a project that pulls in grpc dependecy (and transitively zlib) via git clone and add_subdirectory. Unforutunately, CMake puts all targets in the global namespace and requires them to be unique. This is an issue because both $THIS_REPO/examples/CMakeLists.txt and $ZLIB/CMakeLists.txt define the same target named example. This causes CMake step to fail.

@The-EDev The-EDev merged commit 471af9e into CrowCpp:master Nov 18, 2020
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

Successfully merging this pull request may close these issues.

2 participants