From 2ca5e29110f9f3cb243e6191c1a961095a0f84d3 Mon Sep 17 00:00:00 2001
From: Steel Titanium <steeltitanium1@gmail.com>
Date: Tue, 13 Nov 2018 20:37:14 -0500
Subject: [PATCH] Make sure the new option only works on Windows. Is this how
 you do it? I'm not really sure.

---
 src/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 99fc683bde..669d927f78 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -228,8 +228,10 @@ set(SRB2_CONFIG_STATIC_OPENGL OFF CACHE BOOL
 	"Use statically linked OpenGL. NOT RECOMMENDED.")
 
 ### use internal libraries?
-set(SRB2_CONFIG_USE_INTERNAL_LIBRARIES OFF CACHE BOOL
+if (WIN32) ###set on Windows only
+	set(SRB2_CONFIG_USE_INTERNAL_LIBRARIES OFF CACHE BOOL
 	"Use SRB2's internal copies of required dependencies (SDL2, PNG, zlib, GME).")
+endif()
 
 if(${SRB2_CONFIG_HAVE_BLUA})
 	add_definitions(-DHAVE_BLUA)
-- 
GitLab