Solved QMAKE_HOST.mac_version ?
-
i know on mac, that
QMAKE_HOST.version
will return the version of DARWIN running under macOS, but i could have sworn i found a way to get themacOS
version out ofQMAKE_HOST
, somehow, but now no matter how deft my google-fu, i'm unable to find it.CAN i get the
macOS
version out of a var at the time myqmake
file is parsed? -
i was able to get it using
$$system(sw_vers -productVersion)
! Thanks for the tip!-dave
-
i'm surprised it should be so difficult to just fetch the version of macOS that the qmake file is being run on.
-
@davecotter said in QMAKE_HOST.mac_version ?:
i'm surprised it should be so difficult to just fetch the version of macOS that the qmake file is being run on.
Weirdly, it is rarely necessary to get this info.
You should be able to do it in a platform-dependent way, like:
macos { OS_VER=$$system("sw_vers") message("System version is "$$OS_VER) }
-
i was able to get it using
$$system(sw_vers -productVersion)
! Thanks for the tip!-dave