[CI] Properly inclue SDL2 directories for vbamcore (#1240)

The variable name should have been changed to SDL2_INCLUDE_DIRS
This commit is contained in:
Fabrice de Gans 2024-03-10 16:14:52 -07:00 committed by GitHub
parent f17a9855f3
commit e998a4016a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -681,7 +681,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL Clang AND NOT MSVC
endif()
# Common flags.
set(MY_C_FLAGS -pipe -Wno-unused-command-line-argument -Wformat -Wformat-security -feliminate-unused-debug-types)
set(MY_C_FLAGS -pipe -Wformat -Wformat-security -feliminate-unused-debug-types)
include(CheckCXXCompilerFlag)
@ -1184,7 +1184,6 @@ set(
include_directories(
${ZLIB_INCLUDE_DIR}
fex
${SDL2_INCLUDE_DIR}
third_party/include
third_party/include/stb
)
@ -1215,6 +1214,7 @@ if(NOT TRANSLATIONS_ONLY)
${HDR_STB_IMAGE}
)
add_dependencies(vbamcore generate)
target_include_directories(vbamcore PUBLIC ${SDL2_INCLUDE_DIRS})
endif()
if((NOT TRANSLATIONS_ONLY) AND ENABLE_SDL)

View File

@ -18,11 +18,11 @@
#ifndef __VBA_SOUND_SDL_H__
#define __VBA_SOUND_SDL_H__
#include <SDL.h>
#include "ringbuffer.h"
#include "SoundDriver.h"
#include "SDL.h"
class SoundSDL : public SoundDriver {
public:
SoundSDL();