Don't add os.cc to sources with FMT_MODULE (#4004)
It will be included by `fmt.cc`
This commit is contained in:
1 parent
fad0222a0c
commit
46d2acb3ba
1 file changed
+1
-2
+1
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user