Build: Add a flag to disable PCH

This commit is contained in:
Vojtech Kral committed 2019-01-11 12:49:24 +01:00
1 parent 04c0b59bc6
commit 6db40feace
3 files changed
+12 -5

No files matched your search

+1 -1
View File
@@ -171,7 +171,7 @@ add_library(libslic3r STATIC
SLA/SLASpatIndex.hpp
)
if (NOT SLIC3R_SYNTAXONLY)
if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
add_precompiled_header(libslic3r pchheader.hpp FORCEINCLUDE)
endif ()
+1 -1
View File
@@ -128,6 +128,6 @@ add_library(libslic3r_gui STATIC
)
target_link_libraries(libslic3r_gui libslic3r avrdude imgui)
if (NOT SLIC3R_SYNTAXONLY)
if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
add_precompiled_header(libslic3r_gui pchheader.hpp FORCEINCLUDE)
endif ()