Merge pull request #18 from darknessxk/task/change-init-code

Task/change init code
vcpkg-wip
Duncan Ogilvie 3 years ago committed by GitHub
commit 220dec6bbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -113,7 +113,7 @@ int generate_project(const char *str) {
"! Supported types are: executable, library, shared, static, interface"); "! Supported types are: executable, library, shared, static, interface");
} }
const auto tomlbuf = format(cmake_toml, 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(), dir_name.c_str(), str, installed.c_str(), target.c_str(), dest.c_str());
if (strcmp(str, "interface")) { if (strcmp(str, "interface")) {
std::ofstream ofs("src/main.cpp"); std::ofstream ofs("src/main.cpp");

Loading…
Cancel
Save