-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[vcpkg_find_acquire_program] add version check for ninja #12895
Conversation
hmm i don't get why cmake suddenly fails the compiler identification. |
maybe there is no script import
? |
@voskrese: If that would be the case it wouldn't print the message: |
strange, it works locally
|
@voskrese What features did you try to install? Never saw that error. |
lapack-reference_x64-windows>
|
wonder what |
there is no time to look for the reason yet |
separates |
@voskrese: That is ok because it is a cmake list for the foreach loop |
then where is not normal?))) updated it now (vcpkg) |
@voskrese: Found it: |
probably figured out why
installed from mingw I'll try again
|
Version does not matter if the path handling of pkg-config is vastly different |
Co-authored-by: Wolfgang Stöggl <c72578@yahoo.de>
Shiva regression (baseline error):
|
Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>
The shiva issue is 90% probably due to racy writes back to the source dir -- this can be fixed with |
@ras0219: I know but the fix for that should be a separate PR. |
if everything is fine, combine |
[vcpkg_find_acquire_program] add version check for ninja (microsoft#12895)
…2895) * [vcpkg_find_acquire_program] add version check for ninja * Change VERSION to NINJA_VERSION * Missed VERSION change * some more corrections * add missing PACKAGES parameter * add osx hash Co-authored-by: Wolfgang Stöggl <c72578@yahoo.de> * Remove apt/brew package names Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com> * move supported around and disable it for freebsd * fix small command hickup which does not matter for ninja Co-authored-by: Wolfgang Stöggl <c72578@yahoo.de> Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>
string(STRIP "${${VAR}_VERSION_OUTPUT}" ${VAR}_VERSION_OUTPUT) | ||
#TODO: REGEX MATCH case for more complex cases! | ||
if(NOT ${VAR}_VERSION_OUTPUT VERSION_GREATER_EQUAL ${VAR}_VERSION) | ||
message(STATUS "Found ${PROGNAME}('${${VAR}_VERSION_OUTPUT}') but at least version ${${VAR}_VERSION} is required! Trying to use internal version if possible!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we ask for the lowest version but do not match, there may be a problem when using the lower version of the tool in the system.
Related: #18955 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a VERSION_GREATER_EQUAL
check. So if meson on the system is equal or greater it will be used. Otherwise it should use the vcpkg version. This is the same logic vcpkg applies to cmake. If the system CMake version is greater or equal to the minimum set by vcpkg it will be used. Otherwise vcpkg will download its own cmake.
closes
#12894
#12888