From db700fd327a82050c1f76c9b38ee9a79a1e56ab4 Mon Sep 17 00:00:00 2001 From: Marty Plummer Date: Sun, 16 Jul 2017 23:03:07 -0500 Subject: [PATCH] Allow physfs.pc generation on mingw-w64 and osx homebrew/etc, Rename physfs-static to physfs on mingw-w64 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e0674a..ad1441b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,7 +155,7 @@ if(PHYSFS_BUILD_STATIC) # 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 @@ if(UNIX) ) endif() -if(UNIX AND NOT APPLE) +if(NOT MSVC) configure_file( "extras/physfs.pc.in" "extras/physfs.pc"