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

Add dummy targets as dependencies when tools are unavailable #16

Merged
merged 1 commit into from
Aug 4, 2020
Merged

Conversation

jecassis
Copy link
Contributor

@jecassis jecassis commented Aug 3, 2020

When external tool dependencies are not installed, the dummy targets are not appended to their respective target list. Consequently, the CMake generate step fails when adding dependencies with empty/uninitialized variables.

Also modified the print messages slightly to be more consistent with CPM's printouts.

Tested by setting the tool conditional checks to 'false' manually and also by using a Windows GitHub Action in the "ModernCppStarter" repository without deliberately installing Clang or cmake-format.

@TheLartians
Copy link
Owner

Good catch! Also thanks for improving the diagnostics. I'll update the CI here as well to test buildability with missing dependencies.

@TheLartians TheLartians merged commit fdfae9f into TheLartians:master Aug 4, 2020
@TheLartians
Copy link
Owner

I've released the fix in version 1.5.2. Thanks again!

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