summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/cmake.mpd4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/cmake.mpd b/templates/cmake.mpd
index 33936e76..8700206d 100644
--- a/templates/cmake.mpd
+++ b/templates/cmake.mpd
@@ -67,6 +67,10 @@ target_include_directories(${PROJECT_TARGET} PUBLIC <%env_includes%>)
target_link_directories(${PROJECT_TARGET} PUBLIC <%env_libpaths%>)
<%endif%>
+<%if(pch_header)%>
+target_precompile_headers(${PROJECT_TARGET} PRIVATE <%pch_header%>)
+
+<%endif%>
<%if(macros)%>
add_compile_definitions(<%macros%>)