From 55a8f6a4be18510aa43d60a54a93c8119abe5450 Mon Sep 17 00:00:00 2001 From: n-stein <16599929+n-stein@users.noreply.github.com> Date: Fri, 9 May 2025 15:09:18 -0400 Subject: [PATCH] Change component prefix for NSIS compatibility (#4442) --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 556e5178..dd0e0743 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -431,7 +431,7 @@ if (FMT_INSTALL) # Install the library and headers. install(TARGETS ${INSTALL_TARGETS} - COMPONENT fmt-core + COMPONENT fmt_core EXPORT ${targets_export_name} LIBRARY DESTINATION ${FMT_LIB_DIR} ARCHIVE DESTINATION ${FMT_LIB_DIR} @@ -447,13 +447,13 @@ if (FMT_INSTALL) # Install version, config and target files. install(FILES ${project_config} ${version_config} DESTINATION ${FMT_CMAKE_DIR} - COMPONENT fmt-core) + COMPONENT fmt_core) install(EXPORT ${targets_export_name} DESTINATION ${FMT_CMAKE_DIR} NAMESPACE fmt:: - COMPONENT fmt-core) + COMPONENT fmt_core) install(FILES "${pkgconfig}" DESTINATION "${FMT_PKGCONFIG_DIR}" - COMPONENT fmt-core) + COMPONENT fmt_core) endif () function(add_doc_target) @@ -490,7 +490,7 @@ function(add_doc_target) include(GNUInstallDirs) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc-html/ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/fmt - COMPONENT fmt-doc OPTIONAL) + COMPONENT fmt_doc OPTIONAL) endfunction() if (FMT_DOC)