From 718c2c752704547702cb408c8ef63cf90b7c7e56 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Mon, 3 May 2021 17:45:32 +0200 Subject: [PATCH] Get rid of redundant name field in cmkr init --- include/literals.hpp | 1 - src/gen.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/literals.hpp b/include/literals.hpp index af2a56e..89dfa66 100644 --- a/include/literals.hpp +++ b/include/literals.hpp @@ -31,7 +31,6 @@ version = "0.1.0" # [options] [target.%s] -name = "%s" type = "%s" sources = ["src/*.cpp"] include-directories = ["include"] diff --git a/src/gen.cpp b/src/gen.cpp index 5633bf8..be67b55 100644 --- a/src/gen.cpp +++ b/src/gen.cpp @@ -113,7 +113,7 @@ int generate_project(const char *str) { "! Supported types are: executable, library, shared, static, interface"); } - const auto tomlbuf = format(cmake_toml, dir_name.c_str(), dir_name.c_str(), dir_name.c_str(), str, installed.c_str(), target.c_str(), dest.c_str()); + const auto tomlbuf = format(cmake_toml, dir_name.c_str(), dir_name.c_str(), str, installed.c_str(), target.c_str(), dest.c_str()); if (strcmp(str, "interface")) { std::ofstream ofs("src/main.cpp");