Respect default members while building

vcpkg-wip archive_6162e863
Duncan Ogilvie 4 years ago
parent 5a20c0fe42
commit 6162e86329

@ -50,9 +50,9 @@ CMake::CMake(const std::string &path, bool build) {
throw std::runtime_error("bin-dir has been renamed to build-dir"); throw std::runtime_error("bin-dir has been renamed to build-dir");
} }
build_dir = toml::find_or(cmake, "build-dir", ""); build_dir = toml::find_or(cmake, "build-dir", build_dir);
generator = toml::find_or(cmake, "generator", ""); generator = toml::find_or(cmake, "generator", generator);
config = toml::find_or(cmake, "config", ""); config = toml::find_or(cmake, "config", config);
gen_args = optional_array(cmake, "arguments"); gen_args = optional_array(cmake, "arguments");
} }
} else { } else {

Loading…
Cancel
Save