Skip to content
Snippets Groups Projects
Commit 9869aadd authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Allow building SDL2 on windows

parent ff622bf9
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ set(llwindow_LINK_LIBRARIES
)
# Libraries on which this library depends, needed for Linux builds
# Sort by high-level to low-level
if (LINUX)
if (USE_SDL OR LINUX)
list(APPEND viewer_SOURCE_FILES
llkeyboardsdl.cpp
llwindowsdl.cpp
......@@ -70,7 +70,7 @@ if (LINUX)
llwindowsdl.h
)
if (BUILD_HEADLESS)
if (BUILD_HEADLESS AND LINUX)
set(llwindowheadless_LINK_LIBRARIES
${LLCOMMON_LIBRARIES}
${LLIMAGE_LIBRARIES}
......@@ -81,13 +81,13 @@ if (LINUX)
${LLXML_LIBRARIES}
fontconfig # For FCInit and other FC* functions.
)
endif (BUILD_HEADLESS)
endif ()
list(APPEND llwindow_LINK_LIBRARIES
ll::SDL2
)
endif (LINUX)
endif ()
if (DARWIN)
list(APPEND llwindow_SOURCE_FILES
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment