Skip to content

Commit 8832c36

Browse files
committed
#2397: fmt: fix output directory for fmt headers, add format.h
1 parent b993f5f commit 8832c36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/fmt/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ endfunction()
266266

267267
# Define the fmt library, its includes and the needed defines.
268268
set(FMT_HEADERS)
269-
add_headers(FMT_HEADERS base.h core.h format-inl.h ostream.h chrono.h)
269+
add_headers(FMT_HEADERS base.h core.h format-inl.h ostream.h chrono.h format.h)
270270
# add_headers(FMT_HEADERS args.h base.h chrono.h color.h compile.h core.h format.h
271271
# format-inl.h os.h ostream.h printf.h ranges.h std.h
272272
# xchar.h)
@@ -394,7 +394,7 @@ if (FMT_INSTALL)
394394

395395
set(INSTALL_FILE_SET)
396396
if (FMT_USE_CMAKE_MODULES)
397-
set(INSTALL_FILE_SET FILE_SET fmt DESTINATION "${FMT_INC_DIR}/fmt")
397+
set(INSTALL_FILE_SET FILE_SET fmt DESTINATION "${FMT_INC_DIR}/fmt-vt")
398398
endif()
399399

400400
# Install the library and headers.
@@ -403,7 +403,7 @@ if (FMT_INSTALL)
403403
EXPORT ${targets_export_name}
404404
LIBRARY DESTINATION ${FMT_LIB_DIR}
405405
ARCHIVE DESTINATION ${FMT_LIB_DIR}
406-
PUBLIC_HEADER DESTINATION "${FMT_INC_DIR}/fmt"
406+
PUBLIC_HEADER DESTINATION "${FMT_INC_DIR}/fmt-vt"
407407
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
408408
${INSTALL_FILE_SET})
409409

0 commit comments

Comments
 (0)