mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
Modules: Introduce CMAKE_EFFECTIVE_SYSTEM_NAME to lookup compiler info
Create a `CMAKE_EFFECTIVE_SYSTEM_NAME` variable to use for looking up compiler information modules instead of using `CMAKE_SYSTEM_NAME` directly. This will allow multiple platforms to share the same set of compiler information modules without spelling out all of them. Issue: #17870
This commit is contained in:
@@ -5,6 +5,14 @@
|
||||
# This file is included by cmGlobalGenerator::EnableLanguage.
|
||||
# It is included before the compiler has been determined.
|
||||
|
||||
# The CMAKE_EFFECTIVE_SYSTEM_NAME is used to load compiler and compiler
|
||||
# wrapper configuration files. By default it equals to CMAKE_SYSTEM_NAME
|
||||
# but could be overridden in the ${CMAKE_SYSTEM_NAME}-Initialize files.
|
||||
#
|
||||
# It is useful to share the same aforementioned configuration files and
|
||||
# avoids duplicating them in case of tightly related platforms.
|
||||
set(CMAKE_EFFECTIVE_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}")
|
||||
|
||||
include(Platform/${CMAKE_SYSTEM_NAME}-Initialize OPTIONAL)
|
||||
|
||||
set(CMAKE_SYSTEM_SPECIFIC_INITIALIZE_LOADED 1)
|
||||
|
||||
Reference in New Issue
Block a user