-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Fix WIN32 CMake versioning #3300
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
Conversation
The |
This occurs when git is not in your path. I would vote for a more informative error. "Git not found in PATH, so the OBS version could not be set. Either fix this issue, or manually set OBS_VERSION_OVERRIDE" |
Thanks for pointing me to that; this problem occurred because I cloned the repo using WSL's I added
I can confirm manually setting Since it defaults to |
Ah my bad, you need to manually set OBS_VERSION_OVERRIDE. I always forget about that one. |
Yep that works; this could be as simple as a readme update then :) How does that sound? |
That's certainly an option, but I think having CMake report an accurate error would be handy too. |
Will do both |
4f3f0f6
to
a772cbd
Compare
OK, I just made the CPACK_PACKAGE_VERSION default apply when the `git`
subprocess call returns empty.
…On Thu, Aug 20, 2020 at 4:42 PM Matt Gajownik ***@***.***> wrote:
That's certainly an option, but I think having CMake report an accurate
error would be handy too.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3300 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHRW5MFMRLDKPRK6TYCDG3SBWYFVANCNFSM4QGTFR7Q>
.
|
Closing this PR in favour of #4377 which was merged for 27.0 a while back. |
Description
CMake build is erroring out on Windows because
OBS_VERSION
is not set:Motivation and Context
This defaults it to something sane to fix it.
How Has This Been Tested?
configure and generate from cmake-gui
Tested on CMake 3.18.2
Types of changes
Code cleanup (non-breaking change which makes code smaller or more readable)
Checklist:
This change is