cmake: collapse MSVC and MINGW into WIN32

This commit is contained in:
Anonymous Maarten 2022-06-15 07:06:25 +02:00 committed by Ozkan Sezer
parent 88ef84c053
commit 2a90b1f469
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ if(WINRT)
list(APPEND PHYSFS_CPP_SRCS src/physfs_platform_winrt.cpp)
endif()
if(UNIX AND NOT MSVC AND NOT MINGW AND NOT APPLE) # (MingW and such might be UNIX _and_ WINDOWS!)
if(UNIX AND NOT WIN32 AND NOT APPLE) # (MingW and such might be UNIX _and_ WINDOWS!)
find_library(PTHREAD_LIBRARY pthread)
if(PTHREAD_LIBRARY)
set(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${PTHREAD_LIBRARY})