Skip to content

Commit c3d4b1f

Browse files
authored
Merge pull request #2713 from marshfolx/master
Fix SDL compilation issue #2710
2 parents 13ad1b7 + e8196b6 commit c3d4b1f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ if(COMMAND register_component)
1616
register_component()
1717
else()
1818
add_library(u8g2 ${COMPONENT_SRCS})
19-
target_include_directories(u8g2 PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/csrc>" "$<INSTALL_INTERFACE:include>")
19+
target_include_directories(u8g2 PUBLIC
20+
"$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/csrc>"
21+
"$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/cppsrc>"
22+
"$<INSTALL_INTERFACE:include>")
2023
endif()
2124

2225
install(TARGETS u8g2

sys/sdl/common/u8x8_d_sdl_128x64.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "SDL.h"
88
#endif
99
#include <assert.h>
10+
#include <stdio.h>
1011

1112
//#define HEIGHT (64)
1213
//#define WIDTH 128

0 commit comments

Comments
 (0)