Allow physfs.pc generation on mingw-w64 and osx homebrew/etc,
authorMarty Plummer <netz.kernel@gmail.com>
Sun, 16 Jul 2017 23:03:07 -0500
changeset 1598 c0f940da618c
parent 1597 54086208785f
child 1599 463b79e656c4
Allow physfs.pc generation on mingw-w64 and osx homebrew/etc,
Rename physfs-static to physfs on mingw-w64
CMakeLists.txt
--- a/CMakeLists.txt	Sun Aug 20 02:02:08 2017 -0400
+++ b/CMakeLists.txt	Sun Jul 16 23:03:07 2017 -0500
@@ -155,7 +155,7 @@
     #  library named "physfs.lib" which would conflict; Unix tend to like the
     #  same library name with a different extension for static libs, but
     #  Windows can just have a separate name.
-    if(NOT WINDOWS)
+    if(NOT MSVC)
         set_target_properties(physfs-static PROPERTIES OUTPUT_NAME "physfs")
     endif()
     if(WINRT)
@@ -258,7 +258,7 @@
     )
 endif()
 
-if(UNIX AND NOT APPLE)
+if(NOT MSVC)
     configure_file(
         "extras/physfs.pc.in"
         "extras/physfs.pc"