From 9c347b2851293f66bc69de96373aac6e6d5a73ea Mon Sep 17 00:00:00 2001 From: MoAlyousef Date: Wed, 16 Sep 2020 11:04:10 +0300 Subject: [PATCH] remove test for now from template --- include/literals.h | 5 ----- src/gen.cpp | 2 +- vendor | 1 + 3 files changed, 2 insertions(+), 6 deletions(-) create mode 160000 vendor diff --git a/include/literals.h b/include/literals.h index 5c6bb32..8f2f85d 100644 --- a/include/literals.h +++ b/include/literals.h @@ -39,9 +39,4 @@ include-dirs = ["include"] # features = [] # defines = [] # link-libs = [] - -# [[test]]] -# name = "test1" -# command = "%s" -# arguments = [] )lit"; diff --git a/src/gen.cpp b/src/gen.cpp index 20cb66a..f7dc7f3 100644 --- a/src/gen.cpp +++ b/src/gen.cpp @@ -47,7 +47,7 @@ int generate_project(const char *str) { const auto dir_name = fs::current_path().stem().string(); std::string mainbuf; const auto tomlbuf = - detail::format(cmake_toml, dir_name.c_str(), dir_name.c_str(), str, dir_name.c_str()); + detail::format(cmake_toml, dir_name.c_str(), dir_name.c_str(), str); if (!strcmp(str, "exe")) { mainbuf = detail::format(hello_world, "main"); } else if (!strcmp(str, "static") || !strcmp(str, "shared") || !strcmp(str, "lib")) { diff --git a/vendor b/vendor new file mode 160000 index 0000000..9132abc --- /dev/null +++ b/vendor @@ -0,0 +1 @@ +Subproject commit 9132abc5c403bfeaf12a8ff940a9fbdc45220843