From fd7d91a1d59d164b9a7b97b3e97e04ed0217f381 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 11 Jun 2025 21:43:33 +0200 Subject: [PATCH] Dep/g3d: Enable PCH (cherry picked from commit e9a2f84fd3f203a1942c87c5c9c38b5b4ff6d051) --- dep/g3dlite/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dep/g3dlite/CMakeLists.txt b/dep/g3dlite/CMakeLists.txt index 90d2280cc7..305c91613f 100644 --- a/dep/g3dlite/CMakeLists.txt +++ b/dep/g3dlite/CMakeLists.txt @@ -71,3 +71,14 @@ set_target_properties(g3dlib PROPERTIES FOLDER "dep") + +# Generate precompiled header +if(USE_COREPCH) + list(APPEND g3dlib_PCH_HEADERS + [["G3D/Any.h"]] + [["G3D/Array.h"]] + [["G3D/BinaryOutput.h"]] + [["G3D/Vector3.h"]]) + + add_cxx_pch(g3dlib "${g3dlib_PCH_HEADERS}") +endif()