diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-10 10:49:28 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-10 11:36:01 +0200 |
commit | aa5a3bd725861161d6b713a5145729abe6115aec (patch) | |
tree | cb0cad0ae94077c0e1f2794c85b5278e7e1bee82 /main | |
parent | 10e5f3713cabab03da741743b43a4c7d98954500 (diff) |
cmake: add precompiled header now unconditionally
Diffstat (limited to 'main')
-rw-r--r-- | main/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index fe32d1d5..419043aa 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -10,3 +10,9 @@ target_link_libraries(${self} PUBLIC fmt::fmt tsl::robin_map ) + +if(NOT MSVC) + target_precompile_headers(${self} REUSE_FROM floormat) +else() + target_precompile_headers(${self} PRIVATE ../src/precomp.hpp) +endif() |