From 1b79b9527c3457009168f2fb8ef5b186c1ffbcc1 Mon Sep 17 00:00:00 2001
From: Steel Titanium <steeltitanium1@gmail.com>
Date: Wed, 14 Nov 2018 15:58:45 -0500
Subject: [PATCH] Properly check if cmake is running on wwindows Thanks Monster
 Iestyn for informing me this is the correct way.

---
 src/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 669d927f7..1be110a75 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -228,7 +228,7 @@ set(SRB2_CONFIG_STATIC_OPENGL OFF CACHE BOOL
 	"Use statically linked OpenGL. NOT RECOMMENDED.")
 
 ### use internal libraries?
-if (WIN32) ###set on Windows only
+if(${CMAKE_SYSTEM} MATCHES "Windows") ###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()
-- 
GitLab