CMAKE_HOST_APPLE
True
for Apple OS X operating systems.
Set to true
when the host system is Apple OS X.
© 2000–2019 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.5/variable/CMAKE_HOST_APPLE.html