mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-29 12:32:38 +00:00
Don't add os.cc
to sources with FMT_MODULE (#4004)
It will be included by `fmt.cc`
This commit is contained in:
parent
fad0222a0c
commit
46d2acb3ba
@ -292,8 +292,7 @@ add_module_library(fmt src/fmt.cc FALLBACK
|
|||||||
add_library(fmt::fmt ALIAS fmt)
|
add_library(fmt::fmt ALIAS fmt)
|
||||||
if (FMT_MODULE)
|
if (FMT_MODULE)
|
||||||
enable_module(fmt)
|
enable_module(fmt)
|
||||||
endif ()
|
elseif (FMT_OS)
|
||||||
if (FMT_OS)
|
|
||||||
target_sources(fmt PRIVATE src/os.cc)
|
target_sources(fmt PRIVATE src/os.cc)
|
||||||
else()
|
else()
|
||||||
target_compile_definitions(fmt PRIVATE FMT_OS=0)
|
target_compile_definitions(fmt PRIVATE FMT_OS=0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user