From 99992bb1d576e241fdb1617be021e870fc61f41d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 26 Jul 2017 09:03:04 -0400 Subject: [PATCH] WinRT: Disable harmless (in our case) linker warning. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f3dc977..884bbf3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,7 +158,9 @@ if(PHYSFS_BUILD_STATIC) 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)