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 ...@@ -60,7 +60,7 @@ set(llwindow_LINK_LIBRARIES
) )
# Libraries on which this library depends, needed for Linux builds # Libraries on which this library depends, needed for Linux builds
# Sort by high-level to low-level # Sort by high-level to low-level
if (LINUX) if (USE_SDL OR LINUX)
list(APPEND viewer_SOURCE_FILES list(APPEND viewer_SOURCE_FILES
llkeyboardsdl.cpp llkeyboardsdl.cpp
llwindowsdl.cpp llwindowsdl.cpp
...@@ -70,7 +70,7 @@ if (LINUX) ...@@ -70,7 +70,7 @@ if (LINUX)
llwindowsdl.h llwindowsdl.h
) )
if (BUILD_HEADLESS) if (BUILD_HEADLESS AND LINUX)
set(llwindowheadless_LINK_LIBRARIES set(llwindowheadless_LINK_LIBRARIES
${LLCOMMON_LIBRARIES} ${LLCOMMON_LIBRARIES}
${LLIMAGE_LIBRARIES} ${LLIMAGE_LIBRARIES}
...@@ -81,13 +81,13 @@ if (LINUX) ...@@ -81,13 +81,13 @@ if (LINUX)
${LLXML_LIBRARIES} ${LLXML_LIBRARIES}
fontconfig # For FCInit and other FC* functions. fontconfig # For FCInit and other FC* functions.
) )
endif (BUILD_HEADLESS) endif ()
list(APPEND llwindow_LINK_LIBRARIES list(APPEND llwindow_LINK_LIBRARIES
ll::SDL2 ll::SDL2
) )
endif (LINUX) endif ()
if (DARWIN) if (DARWIN)
list(APPEND llwindow_SOURCE_FILES 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