Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2019-08-19 13:25:18 +0300
committerVojtech Kral <vojtech@kral.hk>2019-08-19 18:04:14 +0300
commit0ded335488b1bc84f808cf335ef9751edcd9276f (patch)
tree540f912e9bfa19c4ce2e4e2ed2b4d34367d049d5 /src/slic3r/CMakeLists.txt
parentf937209619e7a32ba4f3a5571d647aa4e695b5e5 (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/slic3r/CMakeLists.txt')
-rw-r--r--src/slic3r/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slic3r/CMakeLists.txt b/src/slic3r/CMakeLists.txt
index e3a910d6d..b3e2990f9 100644
--- a/src/slic3r/CMakeLists.txt
+++ b/src/slic3r/CMakeLists.txt
@@ -163,6 +163,8 @@ endif ()
add_library(libslic3r_gui STATIC ${SLIC3R_GUI_SOURCES})
+encoding_check(libslic3r_gui)
+
target_link_libraries(libslic3r_gui libslic3r avrdude cereal imgui ${GLEW_LIBRARIES})
if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
add_precompiled_header(libslic3r_gui pchheader.hpp FORCEINCLUDE)