Properly check if cmake is running on wwindows

Thanks Monster Iestyn for informing me this is the correct way.
This commit is contained in:
Steel Titanium 2018-11-14 15:58:45 -05:00
parent 2ca5e29110
commit 1b79b9527c

View file

@ -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()