CMakeSystemSpecificInitialize.cmake 1.0 KB

1234567891011121314151617181920212223
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. # This file is included by cmGlobalGenerator::EnableLanguage.
  4. # It is included before the compiler has been determined.
  5. # The CMAKE_EFFECTIVE_SYSTEM_NAME is used to load compiler and compiler
  6. # wrapper configuration files. By default it equals to CMAKE_SYSTEM_NAME
  7. # but could be overridden in the ${CMAKE_SYSTEM_NAME}-Initialize files.
  8. #
  9. # It is useful to share the same aforementioned configuration files and
  10. # avoids duplicating them in case of tightly related platforms.
  11. #
  12. # An example are the platforms supported by Xcode (macOS, iOS, tvOS,
  13. # and watchOS). For all of those the CMAKE_EFFECTIVE_SYSTEM_NAME is
  14. # set to Apple which results in using
  15. # Platform/Apple-AppleClang-CXX.cmake for the Apple C++ compiler.
  16. set(CMAKE_EFFECTIVE_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}")
  17. include(Platform/${CMAKE_SYSTEM_NAME}-Initialize OPTIONAL)
  18. set(CMAKE_SYSTEM_SPECIFIC_INITIALIZE_LOADED 1)