diff options
author | Brad King <brad.king@kitware.com> | 2014-04-29 13:14:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-04-29 13:36:14 (GMT) |
commit | 416761e35c828092bc8a7dbe68b3fbe65495f01e (patch) | |
tree | 4514d9c256fd8fccdca1a55d8de3854d83740b4a /Modules/CMakeSystemSpecificInitialize.cmake | |
parent | 20b46a09e38be7521a903e1846716ce9a2ed2df6 (diff) | |
download | CMake-416761e35c828092bc8a7dbe68b3fbe65495f01e.zip CMake-416761e35c828092bc8a7dbe68b3fbe65495f01e.tar.gz CMake-416761e35c828092bc8a7dbe68b3fbe65495f01e.tar.bz2 |
Add platform-specific initialization step when enabling languages
Create a Modules/CMakeSystemSpecificInitialize.cmake module loaded after
CMakeSystem.cmake but before per-language initialization. Use it to
load an optional Platform/<os>-Initialize.cmake module. This will be
useful to do per-platform initialization that does not depend on the
language and use the results when enabling specific languages.
Diffstat (limited to 'Modules/CMakeSystemSpecificInitialize.cmake')
-rw-r--r-- | Modules/CMakeSystemSpecificInitialize.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Modules/CMakeSystemSpecificInitialize.cmake b/Modules/CMakeSystemSpecificInitialize.cmake new file mode 100644 index 0000000..5327ac1 --- /dev/null +++ b/Modules/CMakeSystemSpecificInitialize.cmake @@ -0,0 +1,20 @@ + +#============================================================================= +# Copyright 2002-2014 Kitware, Inc. +# +# Distributed under the OSI-approved BSD License (the "License"); +# see accompanying file Copyright.txt for details. +# +# This software is distributed WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the License for more information. +#============================================================================= +# (To distribute this file outside of CMake, substitute the full +# License text for the above reference.) + +# This file is included by cmGlobalGenerator::EnableLanguage. +# It is included before the compiler has been determined. + +include(Platform/${CMAKE_SYSTEM_NAME}-Initialize OPTIONAL) + +set(CMAKE_SYSTEM_SPECIFIC_INITIALIZE_LOADED 1) |