summaryrefslogtreecommitdiffhomepage
path: root/serialize
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-10 10:49:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-10 11:36:01 +0200
commitaa5a3bd725861161d6b713a5145729abe6115aec (patch)
treecb0cad0ae94077c0e1f2794c85b5278e7e1bee82 /serialize
parent10e5f3713cabab03da741743b43a4c7d98954500 (diff)
cmake: add precompiled header now unconditionally
Diffstat (limited to 'serialize')
-rw-r--r--serialize/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/serialize/CMakeLists.txt b/serialize/CMakeLists.txt
index bede6c6c..be65ccc3 100644
--- a/serialize/CMakeLists.txt
+++ b/serialize/CMakeLists.txt
@@ -23,3 +23,9 @@ endif()
if(WIN32)
target_link_libraries(${self} PUBLIC ntdll)
endif()
+
+if(NOT MSVC)
+ target_precompile_headers(${self} REUSE_FROM floormat)
+else()
+ target_precompile_headers(${self} PRIVATE ../src/precomp.hpp)
+endif()