1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Workaround ffmpeg linking problems

This commit is contained in:
Victor Luchits 2017-07-02 01:09:23 +03:00 committed by Arseniy Shestakov
parent b681db3947
commit 310f6e27cb

View File

@ -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})