APPLE

From Get docs
Cmake/docs/3.21/variable/apple


APPLE

Set to True when the target system is an Apple platform (macOS, iOS, tvOS or watchOS).

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/APPLE.html