CMake: fix linking with WITH_SDL_DYNLOAD

While this was only needed in 'source/blender/python',
add to ghost to avoid problems in the future.
This commit is contained in:
Campbell Barton 2020-12-08 20:47:32 +11:00
parent f43c9499bf
commit 276f6840ed
2 changed files with 10 additions and 2 deletions

View File

@ -142,7 +142,11 @@ if(WITH_HEADLESS OR WITH_GHOST_SDL)
list(APPEND INC_SYS
${SDL_INCLUDE_DIR}
)
if(NOT WITH_SDL_DYNLOAD)
if(WITH_SDL_DYNLOAD)
list(APPEND LIB
extern_sdlew
)
else()
list(APPEND LIB
${SDL_LIBRARY}
)

View File

@ -255,7 +255,11 @@ if(WITH_SDL)
list(APPEND INC_SYS
${SDL_INCLUDE_DIR}
)
if(NOT WITH_SDL_DYNLOAD)
if(WITH_SDL_DYNLOAD)
list(APPEND LIB
extern_sdlew
)
else()
list(APPEND LIB
${SDL_LIBRARY}
)