summaryrefslogtreecommitdiff
path: root/CMake/macOSMaxAllowed.c
AgeCommit message (Collapse)Author
4 dayswip: forkmaxim nikonov
2024-11-28Improve procedure to construct best link command for macOS platformManoloFLTK
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.
2024-11-05MacOS: Improve detection of SDK version (#1103)Albrecht Schlosser
CMake/macOSMaxAllowed.c: avoid C compiler warning in test code CMake/setup.cmake, technical changes: - optimization: test SDK 15.0.0 first to avoid unnecessary test if true - use a function instead of a macro - use different names for (cached) result variables - use prefix FLTK_ for cache variables Note: the cache variables are marked 'internal': you may need to grep CMakeCache.txt to view them.
2024-11-04MacOS version check using try_compile: #1103Matthias Melcher
This change will work as well when cross-compiling.
2024-11-04Using try_run to get __MAC_OS_X_VERSION_MAX_ALLOWED (#1105)Matthias Melcher