Browse Source

cmake: use WINDOWS instead of WIN32.

Ryan C. Gordon 7 years ago
parent
commit
4d4bb2b0ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -212,7 +212,7 @@ set(SDL_CFLAGS "")
 
 
 # When building shared lib for Windows with MinGW,
 # When building shared lib for Windows with MinGW,
 # avoid the DLL having a "lib" prefix
 # avoid the DLL having a "lib" prefix
-if(WIN32)
+if(WINDOWS)
   set(CMAKE_SHARED_LIBRARY_PREFIX "")
   set(CMAKE_SHARED_LIBRARY_PREFIX "")
 endif()
 endif()