fix(cmake): fixed lvgl.pc source dir in install step if using FetchContent (#4815)

Co-authored-by: Gregor Copoix <gregor.copoix@ithinx.io>
This commit is contained in:
gcopoix
2023-11-18 08:46:43 +01:00
committed by GitHub
parent e15df6744e
commit 2cba406014
3 changed files with 17 additions and 16 deletions

View File

@@ -85,7 +85,7 @@ install(
configure_file("${LVGL_ROOT_DIR}/lvgl.pc.in" lvgl.pc @ONLY)
install(
FILES "${CMAKE_BINARY_DIR}/lvgl.pc"
FILES "${CMAKE_CURRENT_BINARY_DIR}/lvgl.pc"
DESTINATION "${LIB_INSTALL_DIR}/pkgconfig/")
set_target_properties(