From 310f6e27cbada33ac9fd2202fe4b017637308777 Mon Sep 17 00:00:00 2001 From: Victor Luchits Date: Sun, 2 Jul 2017 01:09:23 +0300 Subject: [PATCH] Workaround ffmpeg linking problems --- client/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 2c2707a0e..9cba33b56 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -120,6 +120,13 @@ if(ANDROID) # android needs client/server to be libraries, not executables, so w return() endif() +if(MSVC) + # workaround ffmpeg linking problems + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO") + set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /SAFESEH:NO") +endif() + if(APPLE) # OS X specific includes include_directories(${SPARKLE_INCLUDE_DIR})