Przeglądaj źródła

cmake: collapse MSVC and MINGW into WIN32

Anonymous Maarten 3 lat temu
rodzic
commit
2a90b1f469
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -57,7 +57,7 @@ if(WINRT)
     list(APPEND PHYSFS_CPP_SRCS src/physfs_platform_winrt.cpp)
     list(APPEND PHYSFS_CPP_SRCS src/physfs_platform_winrt.cpp)
 endif()
 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)
     find_library(PTHREAD_LIBRARY pthread)
     if(PTHREAD_LIBRARY)
     if(PTHREAD_LIBRARY)
         set(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${PTHREAD_LIBRARY})
         set(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${PTHREAD_LIBRARY})