Skip to content

Commit

Permalink
Fix FMT_OS definition (#3783)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Shchapov <[email protected]>
  • Loading branch information
phprus authored Jan 2, 2024
1 parent 63ce170 commit 7fd1802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ if (FMT_MODULE)
endif ()
if (FMT_OS)
target_sources(fmt PRIVATE src/os.cc)
else()
target_compile_definitions(fmt PRIVATE FMT_OS=0)
endif ()

Expand Down
2 changes: 1 addition & 1 deletion src/fmt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ module :private;
#include "format.cc"
#if FMT_OS
# include "os.cc"
#endif
#endif

0 comments on commit 7fd1802

Please sign in to comment.