summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-30 13:42:02 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-04-30 13:42:02 (GMT)
commitd41adb440f407af1ac18b4fd3d796ad0c1231d63 (patch)
tree7ed74359e1d0821dafd19eb2c0d241ab920179cd /Source
parent8535d4cf5dbe1f48a7da7bece7e435a2bd412eee (diff)
parentbbc358c3fc1f09fe2a483996ae1359dba3f587f4 (diff)
downloadCMake-d41adb440f407af1ac18b4fd3d796ad0c1231d63.zip
CMake-d41adb440f407af1ac18b4fd3d796ad0c1231d63.tar.gz
CMake-d41adb440f407af1ac18b4fd3d796ad0c1231d63.tar.bz2
Merge topic 'osx-init-early'
bbc358c3 Merge branch 'master' into osx-init-early 0cce556b Xcode: Use sysroot and deployment target to identify compiler 0200d0a9 OS X: Factor a Darwin-Initialize module out of Platform/Darwin 416761e3 Add platform-specific initialization step when enabling languages
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalGenerator.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index f09f7b3..1c48d39 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -319,6 +319,9 @@ void cmGlobalGenerator::FindMakeProgram(cmMakefile* mf)
// CMakeSystem.cmake - configured file created by
// CMakeDetermineSystem.cmake IF CMAKE_SYSTEM_LOADED
+// CMakeSystemSpecificInitialize.cmake
+// - includes Platform/${CMAKE_SYSTEM_NAME}-Initialize.cmake
+
// Next try and enable all languages found in the languages vector
//
// FOREACH LANG in languages
@@ -443,6 +446,18 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
fpath += "/CMakeSystem.cmake";
mf->ReadListFile(0,fpath.c_str());
}
+
+ // **** Load the system specific initialization if not yet loaded
+ if (!mf->GetDefinition("CMAKE_SYSTEM_SPECIFIC_INITIALIZE_LOADED"))
+ {
+ fpath = mf->GetModulesFile("CMakeSystemSpecificInitialize.cmake");
+ if(!mf->ReadListFile(0,fpath.c_str()))
+ {
+ cmSystemTools::Error("Could not find cmake module file: ",
+ fpath.c_str());
+ }
+ }
+
std::map<std::string, bool> needTestLanguage;
std::map<std::string, bool> needSetLanguageEnabledMaps;
// foreach language