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 /editor | |
| parent | 10e5f3713cabab03da741743b43a4c7d98954500 (diff) | |
cmake: add precompiled header now unconditionally
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/CMakeLists.txt b/editor/CMakeLists.txt index 0eb7bcb7..372d9cd8 100644 --- a/editor/CMakeLists.txt +++ b/editor/CMakeLists.txt @@ -29,3 +29,9 @@ add_executable(${self} dummy.cc) target_link_libraries(${self} PRIVATE ${self}_o floormat-main floormat-serialize floormat-draw floormat) install(TARGETS ${self} RUNTIME DESTINATION bin) + +if(NOT MSVC) + target_precompile_headers(${self}_o REUSE_FROM floormat) +else() + target_precompile_headers(${self}_o PRIVATE ../src/precomp.hpp) +endif() |
