Don't add os.cc to sources with FMT_MODULE (#4004)

It will be included by `fmt.cc`
This commit is contained in:
LoveSy 2024-06-10 02:00:12 +08:00 committed by GitHub
parent fad0222a0c
commit 46d2acb3ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -292,8 +292,7 @@ add_module_library(fmt src/fmt.cc FALLBACK
add_library(fmt::fmt ALIAS fmt)
if (FMT_MODULE)
enable_module(fmt)
endif ()
if (FMT_OS)
elseif (FMT_OS)
target_sources(fmt PRIVATE src/os.cc)
else()
target_compile_definitions(fmt PRIVATE FMT_OS=0)