diff options
author | Vojtech Kral <vojtech@kral.hk> | 2019-08-19 13:25:18 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2019-08-19 18:04:14 +0300 |
commit | 0ded335488b1bc84f808cf335ef9751edcd9276f (patch) | |
tree | 540f912e9bfa19c4ce2e4e2ed2b4d34367d049d5 /src/avrdude | |
parent | f937209619e7a32ba4f3a5571d647aa4e695b5e5 (diff) |
build: Add source file encoding check
Source files are checked using a small utility in src/build-utils
This is done to prevent bugs in build and localization caused
by weird non-UTF-8 encodings interpreted by MSVC in terms of local codepages
rather than UTF-8.
Diffstat (limited to 'src/avrdude')
-rw-r--r-- | src/avrdude/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/avrdude/CMakeLists.txt b/src/avrdude/CMakeLists.txt index f2204db0c..e6748a5aa 100644 --- a/src/avrdude/CMakeLists.txt +++ b/src/avrdude/CMakeLists.txt @@ -100,6 +100,9 @@ add_dependencies(avrdude gen_conf_h) add_executable(avrdude-slic3r main-standalone.cpp) target_link_libraries(avrdude-slic3r avrdude) +encoding_check(avrdude) +encoding_check(avrdude-slic3r) + if (WIN32) target_compile_definitions(avrdude PRIVATE WIN32NATIVE=1) if(MSVC) |