minor fix
This commit is contained in:
parent
99b3152a60
commit
af055f6f6d
@ -40,8 +40,10 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
||||||
#include "cmGlobalCodeWarriorGenerator.h"
|
#include "cmGlobalCodeWarriorGenerator.h"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void cmNeedBackwardsCompatibility(const std::string& variable,
|
void cmNeedBackwardsCompatibility(const std::string& variable,
|
||||||
@ -653,7 +655,7 @@ void cmake::GetRegisteredGenerators(std::vector<std::string>& names)
|
|||||||
names.push_back(cmGlobalBorlandMakefileGenerator::GetActualName());
|
names.push_back(cmGlobalBorlandMakefileGenerator::GetActualName());
|
||||||
names.push_back(cmGlobalNMakeMakefileGenerator::GetActualName());
|
names.push_back(cmGlobalNMakeMakefileGenerator::GetActualName());
|
||||||
#else
|
#else
|
||||||
#ifdef __APPLE__
|
#if defined(__APPLE__) && defined(CMAKE_BUILD_WITH_CMAKE)
|
||||||
names.push_back(cmGlobalCodeWarriorGenerator::GetActualName());
|
names.push_back(cmGlobalCodeWarriorGenerator::GetActualName());
|
||||||
#endif
|
#endif
|
||||||
names.push_back(cmGlobalUnixMakefileGenerator::GetActualName());
|
names.push_back(cmGlobalUnixMakefileGenerator::GetActualName());
|
||||||
@ -685,7 +687,7 @@ cmGlobalGenerator* cmake::CreateGlobalGenerator(const char* name)
|
|||||||
ret->SetCMakeInstance(this);
|
ret->SetCMakeInstance(this);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#ifdef __APPLE__
|
#if defined(__APPLE__) && defined(CMAKE_BUILD_WITH_CMAKE)
|
||||||
if (!strcmp(name,cmGlobalCodeWarriorGenerator::GetActualName()))
|
if (!strcmp(name,cmGlobalCodeWarriorGenerator::GetActualName()))
|
||||||
{
|
{
|
||||||
ret = new cmGlobalCodeWarriorGenerator;
|
ret = new cmGlobalCodeWarriorGenerator;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user