Skip to content

Commit 908f8f0

Browse files
committed
build: link with lrt for old gcc versions
1 parent eefdc1d commit 908f8f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ target_include_directories(lvgl_linux PUBLIC
395395
${PROJECT_SOURCE_DIR}/src/lib ${LVGL_CONF_INC_DIR})
396396

397397
# Link LVGL with external dependencies - Modern CMake/CMP0079 allows this
398-
target_link_libraries(lvgl PUBLIC ${PKG_CONFIG_LIB} m pthread)
398+
target_link_libraries(lvgl PUBLIC ${PKG_CONFIG_LIB} m pthread rt)
399399

400400
add_executable(lvglsim src/main.c)
401401

0 commit comments

Comments
 (0)