|
@@ -28,7 +28,7 @@ bool cmUtilitySourceCommand::InitialPass(std::vector<std::string> const& args,
|
|
|
// If it exists already and appears up to date then we are done. If
|
|
// If it exists already and appears up to date then we are done. If
|
|
|
// the string contains "(IntDir)" but that is not the
|
|
// the string contains "(IntDir)" but that is not the
|
|
|
// CMAKE_CFG_INTDIR setting then the value is out of date.
|
|
// CMAKE_CFG_INTDIR setting then the value is out of date.
|
|
|
- const char* intDir =
|
|
|
|
|
|
|
+ std::string const& intDir =
|
|
|
this->Makefile->GetRequiredDefinition("CMAKE_CFG_INTDIR");
|
|
this->Makefile->GetRequiredDefinition("CMAKE_CFG_INTDIR");
|
|
|
|
|
|
|
|
bool haveCacheValue = false;
|
|
bool haveCacheValue = false;
|
|
@@ -46,7 +46,7 @@ bool cmUtilitySourceCommand::InitialPass(std::vector<std::string> const& args,
|
|
|
cmState* state = this->Makefile->GetState();
|
|
cmState* state = this->Makefile->GetState();
|
|
|
haveCacheValue = (cacheValue &&
|
|
haveCacheValue = (cacheValue &&
|
|
|
(strstr(cacheValue, "(IntDir)") == nullptr ||
|
|
(strstr(cacheValue, "(IntDir)") == nullptr ||
|
|
|
- (intDir && strcmp(intDir, "$(IntDir)") == 0)) &&
|
|
|
|
|
|
|
+ (intDir == "$(IntDir)")) &&
|
|
|
(state->GetCacheMajorVersion() != 0 &&
|
|
(state->GetCacheMajorVersion() != 0 &&
|
|
|
state->GetCacheMinorVersion() != 0));
|
|
state->GetCacheMinorVersion() != 0));
|
|
|
}
|
|
}
|