Skip to content

Commit

Permalink
fix: correct Dtk6SettingsToolsMacros.cmake path
Browse files Browse the repository at this point in the history
* fix: correct Dtk6SettingsToolsMacros.cmake path

修正 Dtk6SettingsToolsMacros.cmake 路径不正确的问题
同时避免硬编码版本号到 6

Log:
  • Loading branch information
BLumia authored and kegechen committed Oct 23, 2023
1 parent f29a571 commit c7a4732
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmake/DtkTools/DtkToolsConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (EXISTS ${DTK_SETTINGS_TOOLS_EXECUTABLE})
set(DTK_SETTINGS_TOOLS_FOUND TRUE)
endif ()

include("${CMAKE_CURRENT_LIST_DIR}/DtkSettingsToolsMacros.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/DtkToolsTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/Dtk@DTK_VERSION_MAJOR@SettingsToolsMacros.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/Dtk@DTK_VERSION_MAJOR@ToolsTargets.cmake")

get_target_property(DTK_XML2CPP Dtk@DTK_VERSION_MAJOR@::Xml2Cpp LOCATION)
6 changes: 3 additions & 3 deletions tools/qdbusxml2cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ set_target_properties(

install(
TARGETS ${BIN_NAME}
EXPORT DtkToolsTargets
EXPORT Dtk${DTK_VERSION_MAJOR}ToolsTargets
DESTINATION ${TOOL_INSTALL_DIR}
)

install(
EXPORT DtkToolsTargets
FILE DtkToolsTargets.cmake
EXPORT Dtk${DTK_VERSION_MAJOR}ToolsTargets
FILE Dtk${DTK_VERSION_MAJOR}ToolsTargets.cmake
NAMESPACE Dtk${DTK_VERSION_MAJOR}::
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/Dtk${DTK_VERSION_MAJOR}Tools"
)

0 comments on commit c7a4732

Please sign in to comment.