diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-11-05 16:09:39 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-11-05 16:09:39 +0100 |
| commit | d5c0e215a46a25de58e6264280c74d428404075f (patch) | |
| tree | 7904d536a001d8be937e21c6b4384ba8a8e2a326 /CMake/macOSMaxAllowed.c | |
| parent | a77cc0cb35455d12a84ccde1e7457345448a375c (diff) | |
MacOS: Improve detection of SDK version (#1103)
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.
Diffstat (limited to 'CMake/macOSMaxAllowed.c')
| -rw-r--r-- | CMake/macOSMaxAllowed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMake/macOSMaxAllowed.c b/CMake/macOSMaxAllowed.c index 93fff3c3d..665d24389 100644 --- a/CMake/macOSMaxAllowed.c +++ b/CMake/macOSMaxAllowed.c @@ -3,4 +3,4 @@ #if __MAC_OS_X_VERSION_MAX_ALLOWED < SDK_VERSION_CHECK #error __MAC_OS_X_VERSION_MAX_ALLOWED < SDK_VERSION_CHECK #endif -int main(int, char**) { return 0; } +int main(int argc, char** argv) { return 0; } |
