From 0a2ed8b0d7a2827c4d042f2e737f803c36c41fc4 Mon Sep 17 00:00:00 2001 From: "Alexander \"Ace\" Olofsson" Date: Tue, 25 Jun 2013 15:05:10 +0200 Subject: [PATCH] Make OpenMW able to initialize SDL in windows builds --- apps/openmw/CMakeLists.txt | 1 + apps/openmw/main.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/openmw/CMakeLists.txt b/apps/openmw/CMakeLists.txt index ddb08f0b09..501e5c5ae5 100644 --- a/apps/openmw/CMakeLists.txt +++ b/apps/openmw/CMakeLists.txt @@ -112,6 +112,7 @@ target_link_libraries(openmw ${BULLET_LIBRARIES} ${MYGUI_LIBRARIES} ${SDL2_LIBRARY} + ${SDL2MAIN_LIBRARY} ${MYGUI_PLATFORM_LIBRARIES} ${SHINY_LIBRARIES} "oics" diff --git a/apps/openmw/main.cpp b/apps/openmw/main.cpp index a68c896837..f11d153b4a 100644 --- a/apps/openmw/main.cpp +++ b/apps/openmw/main.cpp @@ -2,6 +2,7 @@ #include +#include #include "engine.hpp" #if defined(_WIN32) && !defined(_CONSOLE)