WinRT: Disable harmless (in our case) linker warning.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 26 Jul 2017 09:03:04 -0400
changeset 1521 0b052d88ca0d
parent 1520 3bb4dd63efa2
child 1522 d3d65a6e715c
WinRT: Disable harmless (in our case) linker warning.
CMakeLists.txt
--- a/CMakeLists.txt	Tue Jul 25 19:55:58 2017 -0400
+++ b/CMakeLists.txt	Wed Jul 26 09:03:04 2017 -0400
@@ -158,7 +158,9 @@
         set_target_properties(physfs-static PROPERTIES OUTPUT_NAME "physfs")
     endif()
     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 STATIC_LIBRARY_FLAGS "/ignore:4264")
     endif()
 
     set(PHYSFS_LIB_TARGET physfs-static)