From bd930063c2d3633f4c48667a24f72bb5b82ccf81 Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 16 Aug 2022 12:43:32 +0200 Subject: [PATCH] Fixed Project::CMakeBuild::is_valid for MSYS2 --- src/project_build.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/project_build.cpp b/src/project_build.cpp index 1189ed9..bc362c8 100644 --- a/src/project_build.cpp +++ b/src/project_build.cpp @@ -157,8 +157,8 @@ bool Project::CMakeBuild::is_valid(const boost::filesystem::path &build_path) co bool correct_source_dir = false; bool correct_cmake_command = false; while(std::getline(input, line)) { - const static std::regex source_dir_regex("^.*_SOURCE_DIR:STATIC=(.*)$", std::regex::optimize); - const static std::regex cmake_command_regex("^CMAKE_COMMAND:INTERNAL=(.*)$", std::regex::optimize); + const static std::regex source_dir_regex("^.*_SOURCE_DIR:STATIC=(.*)\r?$", std::regex::optimize); + const static std::regex cmake_command_regex("^CMAKE_COMMAND:INTERNAL=(.*)\r?$", std::regex::optimize); std::smatch sm; if(std::regex_match(line, sm, source_dir_regex)) correct_source_dir |= boost::filesystem::path(sm[1].str()) == project_path;