diff --git a/src/cmake_generator.cpp b/src/cmake_generator.cpp index dd325c6..b9366b3 100644 --- a/src/cmake_generator.cpp +++ b/src/cmake_generator.cpp @@ -782,7 +782,7 @@ void generate_cmake(const char *path, const parser::Project *parent_project) { for (const auto &t : project.templates) { if (target.type_string == t.outline.name) { tmplate = &t; - tmplate_cs = std::make_unique(gen, tmplate->outline.condition); + tmplate_cs = std::unique_ptr(new ConditionScope(gen, tmplate->outline.condition)); } } }