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

fix cmake issue with referencing a non-existing function argument #1118

Merged
merged 1 commit into from
Apr 26, 2021

Conversation

germasch
Copy link
Contributor

according to https://cmake.org/cmake/help/latest/command/function.html,
"Referencing to ARGV# arguments beyond ARGC have undefined behavior.",
which I hit with cmake 3.19.7.

This uses ARGC to check whether ARGV1 has been passed before referencing
it.

according to https://cmake.org/cmake/help/latest/command/function.html,
"Referencing to ARGV# arguments beyond ARGC have undefined behavior.",
which I hit with cmake 3.19.7.

This uses ARGC to check whether ARGV1 has been passed before referencing
it.
@google-cla google-cla bot added the cla: yes label Apr 24, 2021
@dmah42
Copy link
Member

dmah42 commented Apr 26, 2021

travis issue seems unrelated (i think i might replace it entirely with github actions).

thank you!

@dmah42 dmah42 merged commit d882be1 into google:master Apr 26, 2021
@germasch germasch deleted the pr/fix-cmake branch April 26, 2021 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants