Skip to content

Commit bb6cb8e

Browse files
committed
Change component prefix for NSIS compatibility
1 parent eb9a95d commit bb6cb8e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ if (FMT_INSTALL)
431431

432432
# Install the library and headers.
433433
install(TARGETS ${INSTALL_TARGETS}
434-
COMPONENT fmt-core
434+
COMPONENT fmt_core
435435
EXPORT ${targets_export_name}
436436
LIBRARY DESTINATION ${FMT_LIB_DIR}
437437
ARCHIVE DESTINATION ${FMT_LIB_DIR}
@@ -447,13 +447,13 @@ if (FMT_INSTALL)
447447
# Install version, config and target files.
448448
install(FILES ${project_config} ${version_config}
449449
DESTINATION ${FMT_CMAKE_DIR}
450-
COMPONENT fmt-core)
450+
COMPONENT fmt_core)
451451
install(EXPORT ${targets_export_name} DESTINATION ${FMT_CMAKE_DIR}
452452
NAMESPACE fmt::
453-
COMPONENT fmt-core)
453+
COMPONENT fmt_core)
454454

455455
install(FILES "${pkgconfig}" DESTINATION "${FMT_PKGCONFIG_DIR}"
456-
COMPONENT fmt-core)
456+
COMPONENT fmt_core)
457457
endif ()
458458

459459
function(add_doc_target)
@@ -490,7 +490,7 @@ function(add_doc_target)
490490
include(GNUInstallDirs)
491491
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc-html/
492492
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/fmt
493-
COMPONENT fmt-doc OPTIONAL)
493+
COMPONENT fmt_doc OPTIONAL)
494494
endfunction()
495495

496496
if (FMT_DOC)

0 commit comments

Comments
 (0)