Kaynağa Gözat

WinRT: Disable harmless (in our case) linker warning.

Ryan C. Gordon 8 yıl önce
ebeveyn
işleme
99992bb1d5
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      CMakeLists.txt

+ 2 - 0
CMakeLists.txt

@@ -158,7 +158,9 @@ if(PHYSFS_BUILD_STATIC)
         set_target_properties(physfs-static PROPERTIES OUTPUT_NAME "physfs")
         set_target_properties(physfs-static PROPERTIES OUTPUT_NAME "physfs")
     endif()
     endif()
     if(WINRT)
     if(WINRT)
+        # Ignore LNK4264 warnings; we don't author any WinRT components, just consume them, so we're okay in a static library.
 		set_target_properties(physfs-static PROPERTIES VS_WINRT_COMPONENT True)
 		set_target_properties(physfs-static PROPERTIES VS_WINRT_COMPONENT True)
+        set_target_properties(physfs-static PROPERTIES STATIC_LIBRARY_FLAGS "/ignore:4264")
     endif()
     endif()
 
 
     set(PHYSFS_LIB_TARGET physfs-static)
     set(PHYSFS_LIB_TARGET physfs-static)