Skip to content

Commit

Permalink
fix: can't find so
Browse files Browse the repository at this point in the history
  It's wrong including way for DeclarativePropeties target .
  • Loading branch information
18202781743 committed Dec 15, 2023
1 parent ca277ef commit 4015bd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions misc/DtkDeclarativeConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ find_package(Qt@QT_VERSION_MAJOR@ COMPONENTS
REQUIRED
)
include(${CMAKE_CURRENT_LIST_DIR}/Dtk@[email protected])
include(${CMAKE_CURRENT_LIST_DIR}/Dtk@[email protected])
set(DTK_QML_APP_PLUGIN_PATH @DTK_QML_APP_PLUGIN_PATH@)
get_target_property(DtkDeclarative_INCLUDE_DIRS Dtk@DTK_VERSION_MAJOR@::Declarative INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(DtkDeclarative_LIBRARY_DIRS Dtk@DTK_VERSION_MAJOR@::Declarative INTERFACE_LINK_DIRECTORIES)
Expand Down
2 changes: 1 addition & 1 deletion src/targets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ install(FILES ${PUBLIC_HEADERS} ${D_HEADERS} DESTINATION "${INCLUDE_INSTALL_DIR}

# Install ${LIB_NAME}_properties
install(TARGETS ${LIB_NAME}_properties EXPORT Dtk${DTK_VERSION_MAJOR}DeclarativeProperties DESTINATION "${LIB_INSTALL_DIR}")
install(EXPORT Dtk${DTK_VERSION_MAJOR}DeclarativeProperties NAMESPACE Dtk${DTK_VERSION_MAJOR}:: FILE Dtk${DTK_VERSION_MAJOR}DeclarativeTargets-Properties.cmake DESTINATION "${CONFIG_INSTALL_DIR}")
install(EXPORT Dtk${DTK_VERSION_MAJOR}DeclarativeProperties NAMESPACE Dtk${DTK_VERSION_MAJOR}:: FILE Dtk${DTK_VERSION_MAJOR}DeclarativePropertiesTargets.cmake DESTINATION "${CONFIG_INSTALL_DIR}")

0 comments on commit 4015bd3

Please sign in to comment.