Toolchain_mac.cmake 603 B

123456789101112131415161718
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. #
  8. # this file just exists to provide a place to put defaults that should be present
  9. # in all 3p packages so that they don't have to seperately define this for each one.
  10. set(CMAKE_SYSTEM_NAME Darwin)
  11. set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0" CACHE STRING "The minimum OSX Version to support" FORCE)
  12. set(CMAKE_C_FLAGS "-fPIC")
  13. set(CMAKE_CXX_FLAGS "-fPIC")
  14. # cmake will auto-select the rest.