|
|
|
|
@ -2,9 +2,9 @@
|
|
|
|
|
#include "config.h" |
|
|
|
|
|
|
|
|
|
std::unique_ptr<Project::Build> Project::get_build(const boost::filesystem::path &path) { |
|
|
|
|
auto cmake=new CMake(path); |
|
|
|
|
std::unique_ptr<Project::Build> cmake(new CMake(path)); |
|
|
|
|
if(!cmake->project_path.empty()) |
|
|
|
|
return std::unique_ptr<Project::Build>(cmake); |
|
|
|
|
return cmake; |
|
|
|
|
else |
|
|
|
|
return std::unique_ptr<Project::Build>(new Project::Build()); |
|
|
|
|
} |
|
|
|
|
|