mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-04 05:04:44 +02:00
Fix missing includes in fmt.cc (#3994)
This causes duplicated std definitions in the fmt module
This commit is contained in:
@@ -63,6 +63,8 @@ function(add_module_library name)
|
||||
target_compile_options(${name} PUBLIC -fmodules-ts)
|
||||
endif ()
|
||||
|
||||
target_compile_definitions(${name} PRIVATE FMT_MODULE)
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.28 AND CMAKE_GENERATOR STREQUAL "Ninja")
|
||||
target_sources(${name} PUBLIC FILE_SET fmt TYPE CXX_MODULES FILES ${sources})
|
||||
else()
|
||||
|
Reference in New Issue
Block a user