cmake: Quiet macOS building warning, we can build on macOS just fine. (#8136)

This commit is contained in:
C.W. Betts 2023-02-14 03:32:39 -07:00 committed by GitHub
parent a615f8bf17
commit cf179c42b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -10,8 +10,9 @@ function(detectOperatingSystem)
if(WIN32) if(WIN32)
set(Windows TRUE PARENT_SCOPE) set(Windows TRUE PARENT_SCOPE)
elseif(UNIX AND APPLE) elseif(UNIX AND APPLE)
# No easy way to filter out iOS. if(IOS)
message(WARNING "OS X/iOS isn't supported, the build will most likely fail") message(WARNING "iOS isn't supported, the build will most likely fail")
endif()
set(MacOSX TRUE PARENT_SCOPE) set(MacOSX TRUE PARENT_SCOPE)
elseif(UNIX) elseif(UNIX)
if(CMAKE_SYSTEM_NAME MATCHES "Linux") if(CMAKE_SYSTEM_NAME MATCHES "Linux")