fix bug #5384 -- define DLL_EXPORT in DLL builds and adjust begin_code.h

This commit is contained in:
Ozkan Sezer
2020-12-09 12:01:10 +03:00
parent 50203d58b3
commit 250a055727
6 changed files with 26 additions and 28 deletions

View File

@@ -2212,6 +2212,10 @@ if(SDL_SHARED)
SOVERSION ${LT_REVISION}
OUTPUT_NAME "SDL2-${LT_RELEASE}")
else()
if(WINDOWS OR CYGWIN)
set_target_properties(SDL2 PROPERTIES
DEFINE_SYMBOL DLL_EXPORT)
endif()
set_target_properties(SDL2 PROPERTIES
VERSION ${SDL_VERSION}
SOVERSION ${LT_REVISION}