CMake: Add option for a syntax-only build

This commit is contained in:
Vojtech Kral 2018-11-20 22:59:56 +01:00
parent 18f14482d0
commit 4cb5c2a21b
3 changed files with 20 additions and 2 deletions

View file

@ -126,4 +126,6 @@ add_library(libslic3r_gui STATIC
)
target_link_libraries(libslic3r_gui libslic3r avrdude)
add_precompiled_header(libslic3r_gui pchheader.hpp FORCEINCLUDE)
if (NOT SLIC3R_SYNTAXONLY)
add_precompiled_header(libslic3r_gui pchheader.hpp FORCEINCLUDE)
endif ()