mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-08 15:39:55 +03:00
fix(gx): if WHOA_BUILD_GLSDL, link SDL2 to event module
This commit is contained in:
1 parent
ddcdff5e51
commit
eef37c109d
1 file changed
+9
-3
@@ -1,6 +1,6 @@
|
||||
file(GLOB PRIVATE_SOURCES "*.cpp")
|
||||
|
||||
if(WHOA_SYSTEM_WIN)
|
||||
if (WHOA_SYSTEM_WIN)
|
||||
file(GLOB WIN_SOURCES
|
||||
"win/*.cpp"
|
||||
)
|
||||
@@ -15,7 +15,7 @@ if(WHOA_SYSTEM_MAC)
|
||||
list(APPEND PRIVATE_SOURCES ${MAC_SOURCES})
|
||||
endif()
|
||||
|
||||
if(WHOA_SYSTEM_LINUX)
|
||||
if (WHOA_SYSTEM_LINUX)
|
||||
file(GLOB LINUX_SOURCES
|
||||
"linux/*.cpp"
|
||||
)
|
||||
@@ -23,7 +23,7 @@ if(WHOA_SYSTEM_LINUX)
|
||||
endif()
|
||||
|
||||
# SDL has its own input event processing
|
||||
if(WHOA_BUILD_GLSDL)
|
||||
if (WHOA_BUILD_GLSDL)
|
||||
file(GLOB SDL_SOURCES "sdl/*.cpp")
|
||||
list(APPEND PRIVATE_SOURCES ${SDL_SOURCES})
|
||||
endif()
|
||||
@@ -46,3 +46,9 @@ target_link_libraries(event
|
||||
storm
|
||||
tempest
|
||||
)
|
||||
|
||||
if (WHOA_BUILD_GLSDL)
|
||||
target_link_libraries(event
|
||||
PRIVATE
|
||||
SDL2::SDL2-static)
|
||||
endif()
|
||||
Reference in new issue
Block a user