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;