From 207e9994db3528f04a9682b4578fe63f9e980b32 Mon Sep 17 00:00:00 2001
From: Stephen Hurd <deuce@synchro.net>
Date: Thu, 10 Feb 2022 18:15:59 -0500
Subject: [PATCH] Get sneaky since MozJS is sneaky too.

---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4190e68..c27304e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,7 @@ include("FetchContent")
 
 include(ExternalProject)
 
-add_compile_options(-include xpdevplus.h)
+add_compile_options("SHELL:-include xpdevplus.h")
 
 FetchContent_Declare(
 	CONIO
@@ -62,4 +62,4 @@ configure_file(xpdevplus.h.in xpdevplus.h)
 add_library(xpdevplus STATIC ${SOURCE})
 target_link_libraries(xpdevplus ciolib comio encode hash uifc xpdev)
 target_include_directories(xpdevplus PUBLIC ${XPDevPlus_BINARY_DIR})
-target_compile_options(xpdevplus PUBLIC -include xpdevplus.h)
+target_compile_options(xpdevplus PUBLIC "SHELL:-include xpdevplus.h")
-- 
GitLab