ENH: use CMAKE_SYSTEM instead of CMAKE_SYSTEM_NAME, since

CMAKE_SYSTEM_NAME may already have been set when crosscompiling


Alex
This commit is contained in:
Alexander Neundorf 2007-06-26 19:54:00 -04:00
parent b459ac2a1e
commit b1aac1fb0d
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ void cmGlobalGenerator::FindMakeProgram(cmMakefile* mf)
//
// CMakeSystem.cmake - configured file created by CMakeDetermineSystem.cmake
// CMakeDetermineSystem.cmake - figure out os info and create
// CMakeSystem.cmake IF CMAKE_SYSTEM_NAME
// CMakeSystem.cmake IF CMAKE_SYSTEM
// not set
// CMakeSystem.cmake - configured file created by
// CMakeDetermineSystem.cmake IF CMAKE_SYSTEM_LOADED
@ -243,7 +243,7 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
}
// Load the CMakeDetermineSystem.cmake file and find out
// what platform we are running on
if (!mf->GetDefinition("CMAKE_SYSTEM_NAME"))
if (!mf->GetDefinition("CMAKE_SYSTEM"))
{
#if defined(_WIN32) && !defined(__CYGWIN__)
/* Windows version number data. */