From 52603dab4f289a210ce96285d90b0b8fabcfa5bd Mon Sep 17 00:00:00 2001 From: MoAlyousef Date: Wed, 9 Sep 2020 22:58:16 +0300 Subject: [PATCH] fix fs to string conversion --- src/gen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen.cpp b/src/gen.cpp index c442fd8..e420a7b 100644 --- a/src/gen.cpp +++ b/src/gen.cpp @@ -74,7 +74,7 @@ void generate_cmake(const char *path) { std::stringstream ss; std::vector subdirs; - const auto toml = toml::parse(fs::path(path) / "cmake.toml"); + const auto toml = toml::parse((fs::path(path) / "cmake.toml").string()); if (toml.contains("cmake")) { const auto &cmake = toml::find(toml, "cmake"); const std::string cmake_min = toml::find(cmake, "minimum_required").as_string();