Skip to content

Commit 6b84761

Browse files
removed SDL dependency
1 parent dba2226 commit 6b84761

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

server/CMakeLists.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,9 @@ else(UNIX)
5858
message("Dependencies downloaded :)")
5959
endif()
6060

61-
set(SDL_DIR ${WFDIR}/SDL)
62-
set(CMAKE_PREFIX_PATH ${SDL_DIR})
6361
set(BOOST_ROOT ${WFDIR}/boost)
6462
link_directories(${BOOST_ROOT}/lib) # Boost doesn't find everything
6563
endif(UNIX)
66-
67-
# SDL Headers
68-
find_package(SDL 1.2 REQUIRED)
69-
include_directories(${SDL_INCLUDE_DIRS})
70-
7164
# Boost/Asio
7265
set(Boost_FIND_REQUIRED TRUE)
7366
set(Boost_USE_STATIC_LIBS OFF)
@@ -88,8 +81,8 @@ include_directories(websocketpp)
8881
include_directories(cpp-httplib)
8982

9083
if (isPlugin)
91-
DFHACK_PLUGIN(dfplex ${SRC} LINK_LIBRARIES SDL dfhack-tinythread ${PROJECT_LIBS})
92-
target_link_libraries(dfplex ${Boost_LIBRARIES} SDL)
84+
DFHACK_PLUGIN(dfplex ${SRC} LINK_LIBRARIES dfhack-tinythread ${PROJECT_LIBS})
85+
target_link_libraries(dfplex ${Boost_LIBRARIES})
9386
INSTALL(DIRECTORY ../dist/shared/ DESTINATION .)
9487
INSTALL(DIRECTORY ../static/ DESTINATION ./hack/www)
9588
else()

0 commit comments

Comments
 (0)