forked from fmtlib/fmt
Fix formatting
This commit is contained in:
@ -106,7 +106,8 @@ function(add_module_library name)
|
|||||||
if (CMAKE_VERSION VERSION_LESS 3.28)
|
if (CMAKE_VERSION VERSION_LESS 3.28)
|
||||||
target_sources(${name} PRIVATE ${sources})
|
target_sources(${name} PRIVATE ${sources})
|
||||||
else ()
|
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 ()
|
endif ()
|
||||||
endfunction()
|
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_definitions(fmt-header-only INTERFACE FMT_HEADER_ONLY=1)
|
||||||
target_compile_features(fmt-header-only INTERFACE cxx_std_11)
|
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>
|
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
||||||
$<INSTALL_INTERFACE:${FMT_INC_DIR}>)
|
$<INSTALL_INTERFACE:${FMT_INC_DIR}>)
|
||||||
|
|
||||||
@ -400,8 +402,10 @@ if (FMT_INSTALL)
|
|||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
|
|
||||||
if (FMT_MODULE AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.28)
|
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 format.cc and os.cc which are included by the fmt.cc module
|
||||||
install(FILES src/format.cc src/os.cc DESTINATION "${FMT_LIB_DIR}/cxx/miu/src")
|
# interface file.
|
||||||
|
install(FILES src/format.cc src/os.cc
|
||||||
|
DESTINATION "${FMT_LIB_DIR}/cxx/miu/src")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Use a namespace because CMake provides better diagnostics for namespaced
|
# Use a namespace because CMake provides better diagnostics for namespaced
|
||||||
|
Reference in New Issue
Block a user