From fea69428d1e2aa7088326815e875364d99e9cce2 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 11 Aug 2022 23:29:37 +0200 Subject: [PATCH] Apply cmake-format --- cmake/modules/LibraryTarget.cmake | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cmake/modules/LibraryTarget.cmake b/cmake/modules/LibraryTarget.cmake index b554def..3c24dec 100644 --- a/cmake/modules/LibraryTarget.cmake +++ b/cmake/modules/LibraryTarget.cmake @@ -258,11 +258,10 @@ endforeach () # add all REQUIRED_PACKAGES that are exported by the current build to INTERFACE_REQUIRED_PACKAGES foreach (REQUIRED_PACKAGE ${REQUIRED_PACKAGES}) - # note: Looks like CMake (as of version 3.24.0) adds a check for targets that are exported as - # part of the current build in "*Targets.cmake" export files as those targets are also added as - # "IMPORTED_LINK_DEPENDENT_LIBRARIES". For instance, qtforkawesome and qtquickforkawesome are - # built within the same project and qtforkawesome ends up as IMPORTED_LINK_DEPENDENT_LIBRARIES - # on qtquickforkawesome's export and is checked to exist. + # note: Looks like CMake (as of version 3.24.0) adds a check for targets that are exported as part of the current build + # in "*Targets.cmake" export files as those targets are also added as "IMPORTED_LINK_DEPENDENT_LIBRARIES". For instance, + # qtforkawesome and qtquickforkawesome are built within the same project and qtforkawesome ends up as + # IMPORTED_LINK_DEPENDENT_LIBRARIES on qtquickforkawesome's export and is checked to exist. if ("${EXPORT_${REQUIRED_PACKAGE}}") list(APPEND INTERFACE_REQUIRED_PACKAGES "${REQUIRED_PACKAGE}") endif () @@ -523,7 +522,9 @@ if (NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS) COMPONENT cmake-config) # allow checking for the export in subsequent sibling projects/directories - set("EXPORT_${NAMESPACE_PREFIX}${META_PROJECT_NAME}${META_CONFIG_SUFFIX}" ON PARENT_SCOPE) + set("EXPORT_${NAMESPACE_PREFIX}${META_PROJECT_NAME}${META_CONFIG_SUFFIX}" + ON + PARENT_SCOPE) # add install target for header files if (NOT META_IS_PLUGIN)