fix for msvc

self-hosting
Mohammed Alyousef 4 years ago
parent b9d403c201
commit 2117893b87

@ -23,7 +23,7 @@ CMake::CMake(const std::string &path, bool build) {
if (!fs::exists(fs::path(path) / "cmake.toml")) { if (!fs::exists(fs::path(path) / "cmake.toml")) {
throw std::runtime_error("No cmake.toml was found!"); throw std::runtime_error("No cmake.toml was found!");
} }
const auto toml = toml::parse(fs::path(path) / "cmake.toml"); const auto toml = toml::parse((fs::path(path) / "cmake.toml").string());
if (build) { if (build) {
if (toml.contains("cmake")) { if (toml.contains("cmake")) {
const auto &cmake = toml::find(toml, "cmake"); const auto &cmake = toml::find(toml, "cmake");

Loading…
Cancel
Save