Skip to content

Commit

Permalink
fix(cmake): fix install (lvgl#6787)
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor authored Sep 11, 2024
1 parent d4715a9 commit 559618d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions env_support/cmake/custom.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ if("${INC_INSTALL_DIR}" STREQUAL "")
set(INC_INSTALL_DIR "include/lvgl")
endif()

set(CMAKE_INSTALL_PREFIX .)

#Install headers
install(
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src"
Expand Down Expand Up @@ -131,8 +133,8 @@ if(NOT LV_CONF_BUILD_DISABLE_DEMOS)
endif()


configure_file("${LVGL_ROOT_DIR}/lvgl.pc.in" lvgl.pc @ONLY)
configure_file("${LVGL_ROOT_DIR}/lv_version.h.in" lv_version.h @ONLY)
configure_file("${LVGL_ROOT_DIR}/lvgl.pc.in" ${CMAKE_BINARY_DIR}/lvgl.pc @ONLY)
configure_file("${LVGL_ROOT_DIR}/lv_version.h.in" ${CMAKE_BINARY_DIR}/lv_version.h @ONLY)

install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/lvgl.pc"
Expand Down

0 comments on commit 559618d

Please sign in to comment.