From b78c6b1ff221b6d2c282246ebd8b10212bbba34a Mon Sep 17 00:00:00 2001
From: matcool <26722564+matcool@users.noreply.github.com>
Date: Mon, 12 Feb 2024 18:17:15 -0300
Subject: [PATCH] enable pch on all platforms if (s)ccache was not found

---
 CMakeLists.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 29d64a90..7318239c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,8 +22,12 @@ if (NOT GEODE_DISABLE_CACHE AND
 		message(STATUS "Looking for ccache/sccache - not found")
 		message(NOTICE "Not using a caching compiler (ccache/sccache). "
 			"It is recommended to install one to improve build times.")
-		message(NOTICE "Recommended sccache, check its README for installation instructions, "
+		message(NOTICE "We recommend sccache, check its README for installation instructions, "
 			"normally you can just use your usual package manager (e.g. 'scoop install sccache').")
+		if (NOT DEFINED GEODE_DISABLE_PRECOMPILED_HEADERS)
+			message(NOTICE "Because of this, PCH will be enabled.")
+			set(GEODE_DISABLE_PRECOMPILED_HEADERS OFF)
+		endif()
 	else()
 		message(STATUS "Looking for ccache/sccache - found")
 		message(NOTICE "Compiler launcher not set but ccache/sccache was found. "