Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix SDL includes in tnzbase

Michał Janiszewskic8607f3d7ae4
diff --git a/toonz/sources/common/tapptools/ttimer.cpp b/toonz/sources/common/tapptools/ttimer.cpp
index 272616461..bbd2c7097 100644
--- a/toonz/sources/common/tapptools/ttimer.cpp
+++ b/toonz/sources/common/tapptools/ttimer.cpp
@@ -124,8 +124,8 @@ void CALLBACK ElapsedTimeCB(UINT uID, UINT uMsg, DWORD dwUser, DWORD dw1,
};
#elif LINUX
-#include <SDL/SDL_timer.h>
-#include <SDL/SDL.h>
+#include <SDL_timer.h>
+#include <SDL.h>
#include "tthread.h"
namespace {
Uint32 ElapsedTimeCB(Uint32 interval, void *param);
diff --git a/toonz/sources/tnzbase/CMakeLists.txt b/toonz/sources/tnzbase/CMakeLists.txt
index 2bd97105f..ce03b712a 100644
--- a/toonz/sources/tnzbase/CMakeLists.txt
+++ b/toonz/sources/tnzbase/CMakeLists.txt
@@ -190,6 +190,7 @@ elseif(UNIX)
set(EXTRA_LIBS ${EXTRA_LIBS}
${SDL_LIB_LIBRARIES})
+ include_directories(${SDL_LIB_INCLUDE_DIRS})
target_link_libraries(tnzbase Qt5::Core Qt5::Gui)
endif()