summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 278fcc1..6123497 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1258,15 +1258,13 @@ void cmake::SetArgs(const std::vector<std::string>& args)
this->UnprocessedPresetEnvironment = expandedPreset->Environment;
if (!expandedPreset->InstallDir.empty() &&
- this->State->GetInitializedCacheValue("CMAKE_INSTALL_PREFIX") ==
- nullptr) {
+ !this->State->GetInitializedCacheValue("CMAKE_INSTALL_PREFIX")) {
this->UnprocessedPresetVariables["CMAKE_INSTALL_PREFIX"] = {
"PATH", expandedPreset->InstallDir
};
}
if (!expandedPreset->ToolchainFile.empty() &&
- this->State->GetInitializedCacheValue("CMAKE_TOOLCHAIN_FILE") ==
- nullptr) {
+ !this->State->GetInitializedCacheValue("CMAKE_TOOLCHAIN_FILE")) {
this->UnprocessedPresetVariables["CMAKE_TOOLCHAIN_FILE"] = {
"FILEPATH", expandedPreset->ToolchainFile
};