mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-09 22:20:06 +00:00
Fix formatting
This commit is contained in:
parent
cbb18c237a
commit
ec628561c2
@ -106,7 +106,8 @@ function(add_module_library name)
|
||||
if (CMAKE_VERSION VERSION_LESS 3.28)
|
||||
target_sources(${name} PRIVATE ${sources})
|
||||
else ()
|
||||
target_sources(${name} PUBLIC FILE_SET fmt_module TYPE CXX_MODULES FILES ${sources})
|
||||
target_sources(${name} PUBLIC FILE_SET fmt_module TYPE CXX_MODULES
|
||||
FILES ${sources})
|
||||
endif ()
|
||||
endfunction()
|
||||
|
||||
@ -346,7 +347,8 @@ add_library(fmt::fmt-header-only ALIAS fmt-header-only)
|
||||
target_compile_definitions(fmt-header-only INTERFACE FMT_HEADER_ONLY=1)
|
||||
target_compile_features(fmt-header-only INTERFACE cxx_std_11)
|
||||
|
||||
target_include_directories(fmt-header-only ${FMT_SYSTEM_HEADERS_ATTRIBUTE} INTERFACE
|
||||
target_include_directories(fmt-header-only
|
||||
${FMT_SYSTEM_HEADERS_ATTRIBUTE} INTERFACE
|
||||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:${FMT_INC_DIR}>)
|
||||
|
||||
@ -400,8 +402,10 @@ if (FMT_INSTALL)
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
||||
if (FMT_MODULE AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.28)
|
||||
#Install format.cc and os.cc which are #included by the fmt.cc module interface file
|
||||
install(FILES src/format.cc src/os.cc DESTINATION "${FMT_LIB_DIR}/cxx/miu/src")
|
||||
# Install format.cc and os.cc which are included by the fmt.cc module
|
||||
# interface file.
|
||||
install(FILES src/format.cc src/os.cc
|
||||
DESTINATION "${FMT_LIB_DIR}/cxx/miu/src")
|
||||
endif ()
|
||||
|
||||
# Use a namespace because CMake provides better diagnostics for namespaced
|
||||
|
Loading…
Reference in New Issue
Block a user