From aa5a3bd725861161d6b713a5145729abe6115aec Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 10 Apr 2023 10:49:28 +0200 Subject: cmake: add precompiled header now unconditionally --- main/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main') 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() -- cgit v1.2.3