summaryrefslogtreecommitdiff
path: root/CMake/macOSMaxAllowed.c
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-11-28 14:59:32 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-11-28 14:59:32 +0100
commit0cd048a7a848b6aca78ab6176d3e144356512282 (patch)
treee8511685e7ebcfbc249e31c043ef88ba6889eee4 /CMake/macOSMaxAllowed.c
parentbe6966bda6fe3036ac7b7388439fbbd1ea1ee1ec (diff)
Improve procedure to construct best link command for macOS platform
As discussed between Matthias, Albrecht and Manolo, the best procedure is - use MAC_OS_X_VERSION_MAX_ALLOWED but not __MAC_OS_X_VERSION_MAX_ALLOWED; - compile helper file CMake /macOSMaxAllowed.c to detect whether the SDK in use is in version above a given threshold version number; - based upon the result of this check, decide to weakly link or not a given framework.
Diffstat (limited to 'CMake/macOSMaxAllowed.c')
-rw-r--r--CMake/macOSMaxAllowed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMake/macOSMaxAllowed.c b/CMake/macOSMaxAllowed.c
index 665d24389..4628348d3 100644
--- a/CMake/macOSMaxAllowed.c
+++ b/CMake/macOSMaxAllowed.c
@@ -1,6 +1,6 @@
#include <AvailabilityMacros.h>
-#if __MAC_OS_X_VERSION_MAX_ALLOWED < SDK_VERSION_CHECK
-#error __MAC_OS_X_VERSION_MAX_ALLOWED < SDK_VERSION_CHECK
+#if MAC_OS_X_VERSION_MAX_ALLOWED < SDK_VERSION_CHECK
+#error MAC_OS_X_VERSION_MAX_ALLOWED < SDK_VERSION_CHECK
#endif
int main(int argc, char** argv) { return 0; }