Modify PCH script to use builtin cmake function if possible.
This commit is contained in:
@@ -308,6 +308,5 @@ if(SLIC3R_PROFILE)
|
||||
endif()
|
||||
|
||||
if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
|
||||
#add_precompiled_header(libslic3r pchheader.hpp FORCEINCLUDE)
|
||||
target_precompile_headers(libslic3r PRIVATE pchheader.hpp)
|
||||
add_precompiled_header(libslic3r pchheader.hpp FORCEINCLUDE)
|
||||
endif ()
|
||||
|
||||
@@ -231,6 +231,5 @@ if (SLIC3R_STATIC AND UNIX AND NOT APPLE)
|
||||
endif ()
|
||||
|
||||
if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
|
||||
#add_precompiled_header(libslic3r_gui pchheader.hpp FORCEINCLUDE)
|
||||
target_precompile_headers(libslic3r_gui PRIVATE pchheader.hpp)
|
||||
add_precompiled_header(libslic3r_gui pchheader.hpp FORCEINCLUDE)
|
||||
endif ()
|
||||
|
||||
Reference in New Issue
Block a user