Get rid of redundant name field in cmkr init

vcpkg-wip
Duncan Ogilvie 3 years ago
parent 8ea0c7396c
commit 718c2c7527

@ -31,7 +31,6 @@ version = "0.1.0"
# [options]
[target.%s]
name = "%s"
type = "%s"
sources = ["src/*.cpp"]
include-directories = ["include"]

@ -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");

Loading…
Cancel
Save