From ffe08ae60ccfc50c998517180e08ab2f02fb54fd Mon Sep 17 00:00:00 2001 From: d06i Date: Fri, 18 Apr 2025 00:19:51 +0300 Subject: [PATCH] fix #172 --- src/cmake_generator.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/cmake_generator.cpp b/src/cmake_generator.cpp index 6949a66..106ab09 100644 --- a/src/cmake_generator.cpp +++ b/src/cmake_generator.cpp @@ -54,6 +54,18 @@ static std::string format(const char *format, const tsl::ordered_map expand_cmake_path(const fs::path &source_path, const fs::path &toml_dir, bool is_root_project) { auto is_subdir = [](fs::path p, const fs::path &root) { while (true) { @@ -1294,7 +1306,7 @@ void generate_cmake(const char *path, const parser::Project *parent_project) { continue; const auto &source_path = fs::path(path) / source; if (!fs::exists(source_path)) { - throw_target_error("Source file not found: " + source); + throw_target_error("Source file not found: " + space_error_check(source) ); } } break;