summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Elliott <elliottc@objectcomputing.com>2022-10-17 14:00:05 -0500
committerChad Elliott <elliottc@objectcomputing.com>2022-10-17 14:00:05 -0500
commitcaca0a0e3bc9b6233d38cdb1b786edf113ff5d14 (patch)
tree7cfdd36a39833eef3b11915633f63d4ba1addceb
parenta69870a93a1c9c705bf6e1c1d8d434bf1a417333 (diff)
downloadMPC-caca0a0e3bc9b6233d38cdb1b786edf113ff5d14.tar.gz
Added support for precompiled headers.
-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%>)