avrdude: Fix: Generate the embedded conf in the bin dir, remove from repo

The generated file avrdude-slic3r.conf.h is not kept in repo any longer
- it was causing trouble for git diffing.
It's now generated in $CMAKE_CURRENT_BINARY_DIR and included from there.

The file embeds avrdude-slic3r.conf so that the conf doesn't need to
be loaded from disk.
This commit is contained in:
Vojtech Kral 2019-08-20 15:12:32 +02:00
parent 53939796a6
commit 03079d4928
3 changed files with 7 additions and 1192 deletions

View file

@ -21,7 +21,7 @@ int main(int argc, char const *argv[])
std::cerr << "Cannot read file: " << filename_in << std::endl;
}
std::fstream output(filename_out, std::ios::out | std::ios::trunc | std::ios::binary);
std::fstream output(filename_out, std::ios::out | std::ios::trunc);
if (!output.good()) {
std::cerr << "Cannot open output file: " << filename_out << std::endl;
}