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 /draw | |
parent | 10e5f3713cabab03da741743b43a4c7d98954500 (diff) |
cmake: add precompiled header now unconditionally
Diffstat (limited to 'draw')
-rw-r--r-- | draw/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/draw/CMakeLists.txt b/draw/CMakeLists.txt index 2c12289d..f12604ab 100644 --- a/draw/CMakeLists.txt +++ b/draw/CMakeLists.txt @@ -2,3 +2,9 @@ set(self floormat-draw) file(GLOB sources "*.cpp" CONFIGURE_ARGS) add_library(${self} OBJECT "${sources}") target_link_libraries(${self} PUBLIC Magnum::GL) + +if(NOT MSVC) + target_precompile_headers(${self} REUSE_FROM floormat) +else() + target_precompile_headers(${self} PRIVATE ../src/precomp.hpp) +endif() |