Skip to content

Commit

Permalink
Don't add os.cc to sources with FMT_MODULE (#4004)
Browse files Browse the repository at this point in the history
It will be included by `fmt.cc`
  • Loading branch information
yujincheng08 committed Jun 9, 2024
1 parent fad0222 commit 46d2acb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 46d2acb

Please sign in to comment.