summaryrefslogtreecommitdiff
path: root/CMake/macOSMaxAllowed.c
diff options
context:
space:
mode:
Diffstat (limited to 'CMake/macOSMaxAllowed.c')
-rw-r--r--CMake/macOSMaxAllowed.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMake/macOSMaxAllowed.c b/CMake/macOSMaxAllowed.c
new file mode 100644
index 000000000..625bcb6af
--- /dev/null
+++ b/CMake/macOSMaxAllowed.c
@@ -0,0 +1,8 @@
+#include <Availability.h>
+#include <stdio.h>
+
+int main(int argc, char **argv) {
+ unsigned int ver = __MAC_OS_X_VERSION_MAX_ALLOWED;
+ printf("%d.%d.%d", ver/10000, (ver/100)%100, ver%100);
+ return 0;
+}