Skip to content

Commit

Permalink
fix cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
HarveyBates committed Dec 12, 2023
2 parents 5d1856c + df5930c commit 80f346e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions include/eschema/legacy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#include <vector>
#include <tuple>
#include <cstdio>
#include <iterator>
#include <cstring>

#include "eschema/component.hpp"
#include "eschema/config.hpp"
Expand Down
3 changes: 0 additions & 3 deletions include/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
#include <vector>
#include <string>

static const char* KICAD_VERSION = "20211014";
static const char* KICAD_GENERATOR = "kicad_symbol_editor";

class Utils {
public:
static std::vector<std::string> readlines(
Expand Down
2 changes: 2 additions & 0 deletions src/eschema/release.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ bool Symbol::write_to_file(const char* contents) {
*/
bool Symbol::build_header() {
memset(buffer, 0, sizeof(buffer));
const char* KICAD_VERSION = "20211014";
const char* KICAD_GENERATOR = "kicad_symbol_editor";

// Note, closing bracket is added at a later stage
snprintf(buffer, sizeof(buffer), "(kicad_symbol_lib "
Expand Down
4 changes: 2 additions & 2 deletions src/kandle/filestructure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

namespace fs = std::filesystem;

static const std::vector<const std::string> dirs = {
static const std::vector<std::string> dirs = {
"components",
"components/extern",
"components/extern/symbols",
Expand All @@ -41,7 +41,7 @@ bool Kandle::FileStructure::validate_directory() {
std::string path = fs::current_path();

for (const auto& dir_item: fs::directory_iterator{path}) {
auto item = fs::path(dir_item);
const auto item = fs::path(dir_item);
if (item.extension() == ".kicad_pro") {
return true;
}
Expand Down

0 comments on commit 80f346e

Please sign in to comment.