Disable tests and encoding check when cross compiling

This commit is contained in:
tamasmeszaros 2021-02-02 18:08:30 +01:00
parent f0451439ae
commit 62f8e75b34
2 changed files with 17 additions and 0 deletions

View file

@ -1,6 +1,11 @@
option(SLIC3R_ENC_CHECK "Verify encoding of source files" 1)
if (IS_CROSS_COMPILE)
# Force disable due to cross compilation. This fact is already printed on cli for users
set(SLIC3R_ENC_CHECK OFF CACHE BOOL "" FORCE)
endif ()
if (SLIC3R_ENC_CHECK)
add_executable(encoding-check encoding-check.cpp)