CMake: don't link sdlew when WITH_SDL=OFF

This caused a build error building Blender as a Python module
with !125556 applied.
This commit is contained in:
Campbell Barton
2024-09-06 20:58:17 +10:00
parent bd66008344
commit 11187aa9dc
3 changed files with 14 additions and 13 deletions

View File

@@ -28,10 +28,12 @@ if(NOT WITH_SYSTEM_AUDASPACE)
list(APPEND LIB
audaspace
)
if(WITH_SDL_DYNLOAD)
list(APPEND LIB
extern_sdlew
)
if(WITH_SDL)
if(WITH_SDL_DYNLOAD)
list(APPEND LIB
extern_sdlew
)
endif()
endif()
else()
list(APPEND LIB